[pure-lang-svn] SF.net SVN: pure-lang: [217] pure/trunk/lexer.ll
Status: Beta
Brought to you by:
agraef
From: <ag...@us...> - 2008-06-14 07:21:15
|
Revision: 217 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=217&view=rev Author: agraef Date: 2008-06-14 00:19:07 -0700 (Sat, 14 Jun 2008) Log Message: ----------- Check that value of PURE_MORE not only exists, but is also non-empty. Modified Paths: -------------- pure/trunk/lexer.ll Modified: pure/trunk/lexer.ll =================================================================== --- pure/trunk/lexer.ll 2008-06-14 06:59:34 UTC (rev 216) +++ pure/trunk/lexer.ll 2008-06-14 07:19:07 UTC (rev 217) @@ -451,7 +451,7 @@ FILE *fp; const char *more = getenv("PURE_MORE"); // FIXME: We should check that 'more' actually exists here. - if (more && isatty(fileno(stdin)) && (fp = popen(more, "w"))) { + if (more && *more && isatty(fileno(stdin)) && (fp = popen(more, "w"))) { fputs(sout.str().c_str(), fp); pclose(fp); } else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |