Fixed segfaults when redirecting output < > -- Espice

This commit is contained in:
pnenzi 2008-11-04 11:40:17 +00:00
parent 924ddd14e5
commit 72482f964e
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-11-04 Paolo Nenzi
* src/frontend/parser/lexical.c:
53: Fixed the problem of segmentation fault when redirecting output putting spaces
around "<" or ">". A. Roldan - Espice
2008-11-02 Lionel Sainte Cluque
* src/tclspice.c : tcl_vfprintf corrects the stou bug
* README.tcl : Creation

View File

@ -298,7 +298,8 @@ gotchar:
} goto ldefault; /* else continue with default ... */
case '<':
case '>': /* va: <=, >= are unbreakable words */
if (i==0 && *string=='=') {
if(string)
if (i==0 && (*string=='=')) {
buf[i++]=c;
break;
} goto ldefault; /* else continue with default ... */