1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-21 21:38:00 +01:00

Fixed crashing bug in WPrefs.app's appereance section.

This commit is contained in:
dan
1999-10-17 00:38:35 +00:00
parent b47c417b72
commit d4ebd574d2

View File

@@ -1970,7 +1970,8 @@ setupTextureFor(WMList *list, char *key, char *defValue, char *title,
titem->title = wstrdup(title); titem->title = wstrdup(title);
titem->prop = GetObjectForKey(key); titem->prop = GetObjectForKey(key);
if (!titem->prop) { if (!titem->prop || !PLIsArray(titem->prop)) {
/* Maybe also give a error message to stderr that the entry is bad? */
titem->prop = PLGetProplistWithDescription(defValue); titem->prop = PLGetProplistWithDescription(defValue);
} else { } else {
PLRetain(titem->prop); PLRetain(titem->prop);