aboutsummaryrefslogtreecommitdiff
path: root/sldns/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'sldns/parse.c')
-rw-r--r--sldns/parse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sldns/parse.c b/sldns/parse.c
index f4de8602fd69..491c8f51bf10 100644
--- a/sldns/parse.c
+++ b/sldns/parse.c
@@ -149,6 +149,9 @@ sldns_fget_token_l(FILE *f, char *token, const char *delim, size_t limit, int *l
if (c != '\0' && c != '\n') {
*t++ = c;
}
+ if (c == '\n' && line_nr) {
+ *line_nr = *line_nr + 1;
+ }
if (c == '\\' && prev_c == '\\')
prev_c = 0;
else prev_c = c;