From: Michael Stapelberg Date: Sun, 20 Aug 2017 10:57:04 +0000 (+0200) Subject: Skip lines consisting only of “set” X-Git-Tag: 4.14~10^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8cc11dcb08985b980d5be41d4da5c31c652b6737;p=i3%2Fi3 Skip lines consisting only of “set” --- diff --git a/src/config_parser.c b/src/config_parser.c index 0fcdeb6e..24a9bbfb 100644 --- a/src/config_parser.c +++ b/src/config_parser.c @@ -937,7 +937,7 @@ bool parse_file(const char *f, bool use_nagbar) { continue; } - if (strcasecmp(key, "set") == 0) { + if (strcasecmp(key, "set") == 0 && *value != '\0') { char v_key[512]; char v_value[4096] = {'\0'};