drop a redundant check
This commit is contained in:
parent
e3ea250a4d
commit
c5c6fe477b
|
|
@ -1,3 +1,7 @@
|
|||
2010-11-06 Robert Larice
|
||||
* src/frontend/inpcom.c :
|
||||
drop a redundant check
|
||||
|
||||
2010-11-06 Robert Larice
|
||||
* src/spicelib/parser/inp2dot.c ,
|
||||
* src/spicelib/parser/inppas3.c :
|
||||
|
|
|
|||
|
|
@ -1357,7 +1357,7 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name, bool c
|
|||
premature end. If premature end is reached, spew
|
||||
error and zap the line. */
|
||||
if ( !ciprefix( "write", buffer ) ) { // exclude 'write' command so filename case preserved
|
||||
for (s = buffer; *s && (*s != '\n') && (*s != '\0'); s++)
|
||||
for (s = buffer; *s && (*s != '\n'); s++)
|
||||
*s = (char) tolower(*s);
|
||||
if (!*s) {
|
||||
//fprintf(cp_err, "Warning: premature EOF\n");
|
||||
|
|
|
|||
Loading…
Reference in New Issue