summaryrefslogtreecommitdiff
path: root/mktrayicon.c
diff options
context:
space:
mode:
authorCharalampos Kardaris <ckardaris@outlook.com>2019-12-04 16:53:52 +0200
committerCharalampos Kardaris <ckardaris@outlook.com>2019-12-04 16:53:52 +0200
commit0aa20c7e9d14fca6a25866eef29dcd37d02dabcd (patch)
tree788972bfb724099261717bee175be524cc702a0f /mktrayicon.c
parentFix on NULL param for m command and freeable pointers (diff)
downloadmktrayicon-0aa20c7e9d14fca6a25866eef29dcd37d02dabcd.tar.gz
mktrayicon-0aa20c7e9d14fca6a25866eef29dcd37d02dabcd.tar.bz2
mktrayicon-0aa20c7e9d14fca6a25866eef29dcd37d02dabcd.zip
Minor fix
Diffstat (limited to 'mktrayicon.c')
-rw-r--r--mktrayicon.c4
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';
}
}
bgstack15