]> git.mdlowis.com Git - proto/labwc.git/commitdiff
rcxml: set empty variables in post_processing()
authorJohan Malm <jgm323@gmail.com>
Fri, 21 Aug 2020 18:47:50 +0000 (19:47 +0100)
committerJohan Malm <jgm323@gmail.com>
Fri, 21 Aug 2020 18:47:50 +0000 (19:47 +0100)
Avoid crash if no config file can be found

src/config/rcxml.c

index 4341375db6e4523cb0a3aeadaec62e4b5af0d4cb..f447076d6d76ee710d03fb21747f523dc4eecb68 100644 (file)
@@ -245,8 +245,14 @@ static void post_processing(void)
                bind("A-Tab", "NextWindow");
                bind("A-F3", "Execute");
        }
-       /* TODO: Set all char* variables if NULL */
 
+       if (!rc.theme_name)
+               rc.theme_name = strdup("Clearlooks");
+       if (!rc.font_name_activewindow)
+               rc.font_name_activewindow = strdup("sans");
+
+       if (!rc.font_size_activewindow)
+               rc.font_size_activewindow = 8;
        set_title_height();
 }