2008-02-11 10:41:13 +00:00
|
|
|
diff -up logrotate-3.7.6/logrotate.c.segfault logrotate-3.7.6/logrotate.c
|
2008-04-23 12:45:56 +00:00
|
|
|
--- logrotate-3.7.6/logrotate.c.segfault 2008-04-23 14:40:51.000000000 +0200
|
|
|
|
+++ logrotate-3.7.6/logrotate.c 2008-04-23 14:41:14.000000000 +0200
|
|
|
|
@@ -1380,6 +1380,7 @@ static int readState(char *stateFilename
|
|
|
|
line++;
|
2008-02-11 10:41:13 +00:00
|
|
|
|
2008-04-23 12:45:56 +00:00
|
|
|
while (fgets(buf, sizeof(buf) - 1, f)) {
|
|
|
|
+ argv = NULL;
|
|
|
|
line++;
|
|
|
|
i = strlen(buf);
|
|
|
|
if (buf[i - 1] != '\n') {
|