mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-03 18:59:44 +02:00
Nr 2/5 (x = ...) != '\0' , swallow warnings
This commit is contained in:
+4
-4
@@ -232,7 +232,7 @@ gettok(char **s)
|
||||
if (!**s)
|
||||
return (NULL);
|
||||
spice_dstring_init(&buf) ;
|
||||
while ((c = **s) && !isspace(c)) {
|
||||
while ((c = **s) != '\0' && !isspace(c)) {
|
||||
if (c == '('/*)*/)
|
||||
paren += 1;
|
||||
else if (c == /*(*/')')
|
||||
@@ -311,7 +311,7 @@ gettok_noparens(char **s)
|
||||
return (NULL); /* return NULL if we come to end of line */
|
||||
|
||||
spice_dstring_init(&buf) ;
|
||||
while ((c = **s) &&
|
||||
while ((c = **s) != '\0' &&
|
||||
!isspace(c) &&
|
||||
( **s != '(' ) &&
|
||||
( **s != ')' ) &&
|
||||
@@ -343,7 +343,7 @@ gettok_instance(char **s)
|
||||
return (NULL); /* return NULL if we come to end of line */
|
||||
|
||||
spice_dstring_init(&buf) ;
|
||||
while ((c = **s) &&
|
||||
while ((c = **s) != '\0' &&
|
||||
!isspace(c) &&
|
||||
( **s != '(' ) &&
|
||||
( **s != ')' )
|
||||
@@ -384,7 +384,7 @@ gettok_node(char **s)
|
||||
return (NULL); /* return NULL if we come to end of line */
|
||||
|
||||
spice_dstring_init(&buf) ;
|
||||
while ((c = **s) &&
|
||||
while ((c = **s) != '\0' &&
|
||||
!isspace(c) &&
|
||||
( **s != '(' ) &&
|
||||
( **s != ')' ) &&
|
||||
|
||||
Reference in New Issue
Block a user