drop a redundant check

This commit is contained in:
rlar 2010-11-06 17:24:34 +00:00
parent e3ea250a4d
commit c5c6fe477b
2 changed files with 5 additions and 1 deletions

View File

@ -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 :

View File

@ -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");