Date: Thu, 15 Sep 2011 10:35:38 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r225577 - stable/8/cddl/contrib/opensolaris/lib/libdtrace/common Message-ID: <201109151035.p8FAZccc069641@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Thu Sep 15 10:35:38 2011 New Revision: 225577 URL: http://svn.freebsd.org/changeset/base/225577 Log: MFC r209030: In dtrace lexer, do not unput token if it is EOF. On behalf of: kan Modified: stable/8/cddl/contrib/opensolaris/lib/libdtrace/common/dt_lex.l Directory Properties: stable/8/cddl/contrib/opensolaris/ (props changed) Modified: stable/8/cddl/contrib/opensolaris/lib/libdtrace/common/dt_lex.l ============================================================================== --- stable/8/cddl/contrib/opensolaris/lib/libdtrace/common/dt_lex.l Thu Sep 15 09:54:07 2011 (r225576) +++ stable/8/cddl/contrib/opensolaris/lib/libdtrace/common/dt_lex.l Thu Sep 15 10:35:38 2011 (r225577) @@ -810,7 +810,8 @@ id_or_type(const char *s) longjmp(yypcb->pcb_jmpbuf, EDT_NOMEM); } - unput(c0); + if (c0 != EOF) + unput(c0); return (ttok); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109151035.p8FAZccc069641>