]> git.sur5r.net Git - i3/i3/commitdiff
Skip lines consisting only of “set”
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 20 Aug 2017 10:57:04 +0000 (12:57 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 20 Aug 2017 10:59:03 +0000 (12:59 +0200)
src/config_parser.c

index 0fcdeb6ea3178ce673c018a7d6731eac89710b1d..24a9bbfb04976a63be24dedb69b8ac8dfccb1ac8 100644 (file)
@@ -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'};