diff options
author | Charalampos Kardaris <ckardaris@outlook.com> | 2019-12-04 16:53:52 +0200 |
---|---|---|
committer | Charalampos Kardaris <ckardaris@outlook.com> | 2019-12-04 16:53:52 +0200 |
commit | 0aa20c7e9d14fca6a25866eef29dcd37d02dabcd (patch) | |
tree | 788972bfb724099261717bee175be524cc702a0f | |
parent | Fix on NULL param for m command and freeable pointers (diff) | |
download | mktrayicon-0aa20c7e9d14fca6a25866eef29dcd37d02dabcd.tar.gz mktrayicon-0aa20c7e9d14fca6a25866eef29dcd37d02dabcd.tar.bz2 mktrayicon-0aa20c7e9d14fca6a25866eef29dcd37d02dabcd.zip |
Minor fix
-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'; } } |