From: Peter Verthez Date: Fri, 28 Dec 2001 21:13:16 +0000 (+0000) Subject: Forgot variable declaration... X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=2429317e173ddf7603a132032d735177ab088c2d;p=gedcom-parse.git Forgot variable declaration... --- diff --git a/gedcom/gedcom.y b/gedcom/gedcom.y index 8bb5bb6..b04db39 100644 --- a/gedcom/gedcom.y +++ b/gedcom/gedcom.y @@ -2783,7 +2783,8 @@ line_item : anychar { size_t i; *line_item_buf_ptr++ = $1[i]; $$ = line_item_buf; } - | ESCAPE { CLEAR_BUFFER(line_item_buf); + | ESCAPE { size_t i; + CLEAR_BUFFER(line_item_buf); line_item_buf_ptr = line_item_buf; for (i=0; i < strlen($1); i++) *line_item_buf_ptr++ = $1[i]; @@ -2800,7 +2801,8 @@ line_item : anychar { size_t i; $$ = line_item_buf; } | line_item ESCAPE - { for (i=0; i < strlen($2); i++) + { size_t i; + for (i=0; i < strlen($2); i++) *line_item_buf_ptr++ = $2[i]; $$ = line_item_buf; }