Fixed segfaults when redirecting output < > -- Espice
This commit is contained in:
parent
924ddd14e5
commit
72482f964e
|
|
@ -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
|
2008-11-02 Lionel Sainte Cluque
|
||||||
* src/tclspice.c : tcl_vfprintf corrects the stou bug
|
* src/tclspice.c : tcl_vfprintf corrects the stou bug
|
||||||
* README.tcl : Creation
|
* README.tcl : Creation
|
||||||
|
|
|
||||||
|
|
@ -298,7 +298,8 @@ gotchar:
|
||||||
} goto ldefault; /* else continue with default ... */
|
} goto ldefault; /* else continue with default ... */
|
||||||
case '<':
|
case '<':
|
||||||
case '>': /* va: <=, >= are unbreakable words */
|
case '>': /* va: <=, >= are unbreakable words */
|
||||||
if (i==0 && *string=='=') {
|
if(string)
|
||||||
|
if (i==0 && (*string=='=')) {
|
||||||
buf[i++]=c;
|
buf[i++]=c;
|
||||||
break;
|
break;
|
||||||
} goto ldefault; /* else continue with default ... */
|
} goto ldefault; /* else continue with default ... */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue