Skip to content

Commit c6b9bb1

Browse files
fqbuildfqbuild
authored andcommitted
parser.c: Fixes another travis-ci build problem where fgetline() should only be built if WITH_GETLINE is in play.
fgetline() is only called from a wrapped >> #ifdef WITH_GETLINE >> read_lines() { >> ==> fgetline() >> } >> #endif
1 parent 9197e98 commit c6b9bb1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/parser.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2580,6 +2580,7 @@ read_line (GLog * glog, char *line, int *test, int *cnt, int dry_run)
25802580
*
25812581
* On error, NULL is returned.
25822582
* On success, the malloc'd line is returned. */
2583+
#ifdef WITH_GETLINE
25832584
char *
25842585
fgetline (FILE * fp)
25852586
{
@@ -2629,6 +2630,7 @@ fgetline (FILE * fp)
26292630

26302631
return NULL;
26312632
}
2633+
#endif
26322634

26332635
/* Iterate over the log and read line by line (use GNU get_line to parse the
26342636
* whole line).

0 commit comments

Comments
 (0)