Forgot variable declaration...
authorPeter Verthez <Peter.Verthez@advalvas.be>
Fri, 28 Dec 2001 21:13:16 +0000 (21:13 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Fri, 28 Dec 2001 21:13:16 +0000 (21:13 +0000)
gedcom/gedcom.y

index 8bb5bb69433065923cec61990f970c5b7ee0a58a..b04db39dbe5a239d79dce5e839ffcc60f59bf3a8 100644 (file)
@@ -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;
                  }