Browse Source

initialize r after introducing fgets()

Christian Grothoff 1 year ago
parent
commit
fee6093fcf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/include/options-generator.c

+ 1 - 0
src/include/options-generator.c

@@ -730,6 +730,7 @@ TOP:
                  sizeof (line),
                  sizeof (line),
                  f))
                  f))
         break;
         break;
+      r = strlen (line);
       off++;
       off++;
       while ( (r > 0) &&
       while ( (r > 0) &&
               ( (isspace (line[r - 1])) ||
               ( (isspace (line[r - 1])) ||