Fixed mispellings of '\0' as NULL.
This commit is contained in:
parent
0f0e6e75d4
commit
be31ea68bb
@ -110,7 +110,7 @@ tagged { return(TAGGED); }
|
||||
/* count up for nl */
|
||||
{
|
||||
char *p;
|
||||
for (p = yytext; *p != NULL; p++)
|
||||
for (p = yytext; *p != '\0'; p++)
|
||||
if (*p == '\n')
|
||||
lineno++;
|
||||
}
|
||||
@ -221,7 +221,7 @@ any { return(ANY); }
|
||||
{quotedstring} {
|
||||
char *p = yytext;
|
||||
while (*++p != '"') ;
|
||||
*p = NULL;
|
||||
*p = '\0';
|
||||
yytext++;
|
||||
yylval.val.len = yyleng - 2;
|
||||
yylval.val.buf = strdup(yytext);
|
||||
|
@ -110,7 +110,7 @@ tagged { return(TAGGED); }
|
||||
/* count up for nl */
|
||||
{
|
||||
char *p;
|
||||
for (p = yytext; *p != NULL; p++)
|
||||
for (p = yytext; *p != '\0'; p++)
|
||||
if (*p == '\n')
|
||||
lineno++;
|
||||
}
|
||||
@ -221,7 +221,7 @@ any { return(ANY); }
|
||||
{quotedstring} {
|
||||
char *p = yytext;
|
||||
while (*++p != '"') ;
|
||||
*p = NULL;
|
||||
*p = '\0';
|
||||
yytext++;
|
||||
yylval.val.len = yyleng - 2;
|
||||
yylval.val.buf = strdup(yytext);
|
||||
|
Loading…
x
Reference in New Issue
Block a user