patch-src_choices.c - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
(HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
(DIR) Log
(DIR) Files
(DIR) Refs
---
patch-src_choices.c
---
1 $NetBSD$
2
3 Do not skip empty lines.
4
5 --- src/choices.c.orig 2016-08-04 06:54:51.000000000 +0000
6 +++ src/choices.c
7 @@ -73,12 +73,10 @@ void choices_fread(choices_t *c, FILE *f
8 char *line = c->buffer + buffer_start;
9 do {
10 char *nl = strchr(line, '\n');
11 - if (nl)
12 + if (nl) {
13 *nl++ = '\0';
14 -
15 - /* Skip empty lines */
16 - if (*line)
17 choices_add(c, line);
18 + }
19
20 line = nl;
21 } while (line);