diff options
-rw-r--r-- | mktrayicon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mktrayicon.c b/mktrayicon.c index caf3e85..78e6053 100644 --- a/mktrayicon.c +++ b/mktrayicon.c @@ -392,7 +392,7 @@ gpointer watch_fifo(gpointer argv) else { //this is a label-only entry onmenu[item].name = save_word(param, i, last); onmenu[item].action = malloc(1); // pointer has to be freeable - onmenu[item].action = '\0'; + *onmenu[item].action = '\0'; } last = i; lastFound = '|'; @@ -406,7 +406,7 @@ gpointer watch_fifo(gpointer argv) else{ onmenu[item].name = save_word(param, len, last); onmenu[item].action = malloc(1); - onmenu[item].action = '\0'; + *onmenu[item].action = '\0'; } } |