From: Hartmut Holzgraefe Date: Wed, 7 Jun 2000 05:47:24 +0000 (+0000) Subject: cyscape's "current" browscap.ini file doesn't terminate the last line X-Git-Tag: PRE_EIGHT_BYTE_ALLOC_PATCH~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02b0cef4d83a89e46cfa0605f60dc176941f09d7;p=php cyscape's "current" browscap.ini file doesn't terminate the last line in the file with a newline character this resulted in a parse error --- diff --git a/main/configuration-parser.y b/main/configuration-parser.y index a201ce5eb4..852e4dc291 100644 --- a/main/configuration-parser.y +++ b/main/configuration-parser.y @@ -548,6 +548,7 @@ string_or_value: | CFG_TRUE { $$ = $1; } | CFG_FALSE { $$ = $1; } | '\n' { $$.value.str.val = strdup(""); $$.value.str.len=0; $$.type = IS_STRING; } + | '\0' { $$.value.str.val = strdup(""); $$.value.str.len=0; $$.type = IS_STRING; } ; expr: