fix segfault when no actions are specified
This commit is contained in:
parent
9c53223034
commit
783b2cc821
@ -254,6 +254,7 @@ int main(int argc, char *argv[])
|
|||||||
l = g_main_loop_new(NULL, false);
|
l = g_main_loop_new(NULL, false);
|
||||||
g_signal_connect(n, "closed", G_CALLBACK(closed), NULL);
|
g_signal_connect(n, "closed", G_CALLBACK(closed), NULL);
|
||||||
|
|
||||||
|
if (action_strs)
|
||||||
for (int i = 0; action_strs[i]; i++) {
|
for (int i = 0; action_strs[i]; i++) {
|
||||||
add_action(n, action_strs[i]);
|
add_action(n, action_strs[i]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user