mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
fixed crash when saving empty menu items in wprefs
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user