diff options
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c index e737f83c..98109937 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -575,6 +575,9 @@ bool read_config(FILE *file, struct sway_config *config) { | |||
575 | char *line; | 575 | char *line; |
576 | while (!feof(file)) { | 576 | while (!feof(file)) { |
577 | line = read_line(file); | 577 | line = read_line(file); |
578 | if (!line) { | ||
579 | continue; | ||
580 | } | ||
578 | line_number++; | 581 | line_number++; |
579 | line = strip_whitespace(line); | 582 | line = strip_whitespace(line); |
580 | if (line[0] == '#') { | 583 | if (line[0] == '#') { |