projects
/
cascardo
/
f2fchat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Guarantee command argument is non-NULL
[cascardo/f2fchat.git]
/
menu.c
diff --git
a/menu.c
b/menu.c
index
6796be3
..
881b524
100644
(file)
--- a/
menu.c
+++ b/
menu.c
@@
-30,6
+30,8
@@
void menu_add(struct menu_item *mi)
void menu_run(gchar **args, GSocketAddress *address)
{
GList *l;
+ if (args[0] == NULL)
+ return;
for (l = g_list_first(menu); l != NULL; l = g_list_next(l)) {
struct menu_item *mi = l->data;
if (!strcmp(args[0], mi->cmd)) {