From 0aa20c7e9d14fca6a25866eef29dcd37d02dabcd Mon Sep 17 00:00:00 2001 From: Charalampos Kardaris Date: Wed, 4 Dec 2019 16:53:52 +0200 Subject: Minor fix --- mktrayicon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mktrayicon.c') 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'; } } -- cgit