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

fixed crash when saving empty menu items in wprefs

This commit is contained in:
kojima
2001-08-13 21:00:57 +00:00
parent 0ee684f718
commit 0e2ac9dd16

View File

@@ -1625,6 +1625,8 @@ processData(char *title, ItemData *data)
switch (data->type) { switch (data->type) {
case ExecInfo: case ExecInfo:
if (data->param.exec.command == NULL)
return NULL;
#if 1 #if 1
if (strpbrk(data->param.exec.command, "&$*|><?`=;")) { if (strpbrk(data->param.exec.command, "&$*|><?`=;")) {
s1 = "SHEXEC"; s1 = "SHEXEC";
@@ -1754,6 +1756,9 @@ processSubmenu(WEditMenu *menu)
pl = processData(s, WGetEditMenuItemData(item)); pl = processData(s, WGetEditMenuItemData(item));
} }
if (!pl)
continue;
PLAppendArrayElement(pmenu, pl); PLAppendArrayElement(pmenu, pl);
} }