X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Floop.c;h=b6df5c2d6263aac1e4d81532a582448f17b6fe60;hb=1339492699ce7e12c9bf9fa17f9d60a66024cbd1;hp=784ca623229b0244ac6c9a07848b32748962c8e1;hpb=4fdeb2145d081ff1b84e3f6c99f9d1c048c0d64a;p=pspp diff --git a/src/loop.c b/src/loop.c index 784ca62322..b6df5c2d62 100644 --- a/src/loop.c +++ b/src/loop.c @@ -224,7 +224,7 @@ internal_cmd_loop (void) } } else - name[0] = 0; + name[0] = '\0'; /* Parse IF clause. */ if (lex_match_id ("IF")) @@ -243,7 +243,7 @@ internal_cmd_loop (void) } /* Find variable; create if necessary. */ - if (name[0]) + if (name[0] != '\0') { two->index = dict_lookup_var (default_dict, name); if (!two->index)