diff options
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/config.c b/sway/config.c index 6d39839d..f1de6080 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -186,9 +186,10 @@ bool read_config(FILE *file, bool is_active) { | |||
186 | int temp_depth = 0; // Temporary: skip all config sections with depth | 186 | int temp_depth = 0; // Temporary: skip all config sections with depth |
187 | 187 | ||
188 | while (!feof(file)) { | 188 | while (!feof(file)) { |
189 | int _; | ||
189 | char *line = read_line(file); | 190 | char *line = read_line(file); |
190 | strip_comments(line); | 191 | line = strip_comments(line); |
191 | strip_whitespace(line); | 192 | line = strip_whitespace(line, &_); |
192 | if (!line[0]) { | 193 | if (!line[0]) { |
193 | goto _continue; | 194 | goto _continue; |
194 | } | 195 | } |