File wmakerconf-2.9.dif of Package wmakerconf

--- src/misc.c
+++ src/misc.c
@@ -587,10 +587,12 @@
 {
    char *str = g_strdup (name);
    char *ptr, *path;
-
-   for (ptr = str; *ptr; ptr++)
+ 
+   if ( str != NULL ) {
+    for (ptr = str; *ptr; ptr++)
       if (*ptr == '/')
 	 *ptr = '-';
+   }
    path = g_strconcat (g_get_home_dir (), "/.wmakerconf/", str, NULL);
    Free (str);
 
openSUSE Build Service is sponsored by