mirror of
https://github.com/samhocevar/rinetd.git
synced 2025-04-26 04:50:21 +08:00
Fix context line number in error reporting.
This patch is imported from the rinetd Debian package.
This commit is contained in:
parent
7330c19177
commit
b6ded86fe5
2
rinetd.c
2
rinetd.c
@ -699,6 +699,7 @@ int getConfLine(FILE *in, char *line, int space, int *lnum)
|
||||
{
|
||||
char *p;
|
||||
while (1) {
|
||||
(*lnum)++;
|
||||
if (!fgets(line, space, in)) {
|
||||
return 0;
|
||||
}
|
||||
@ -714,7 +715,6 @@ int getConfLine(FILE *in, char *line, int space, int *lnum)
|
||||
/* Comment lines are also OK */
|
||||
continue;
|
||||
}
|
||||
(*lnum)++;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user