aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/custom.c5
-rw-r--r--src/notify.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/src/custom.c b/src/custom.c
index 607d026..f4cbfab 100644
--- a/src/custom.c
+++ b/src/custom.c
@@ -689,7 +689,10 @@ static void general_option_edit(int i)
const char *periodic_save_str =
_("Enter the delay, in minutes, between automatic saves (0 to disable) ");
int val;
- char *buf = malloc(BUFSIZ);
+ char *buf;
+
+ buf = mem_malloc(BUFSIZ);
+ buf[0] = '\0';
switch (i) {
case 0:
diff --git a/src/notify.c b/src/notify.c
index b8ba244..b29e07d 100644
--- a/src/notify.c
+++ b/src/notify.c
@@ -693,6 +693,7 @@ static void config_option_edit(int i)
const char *cmd_str = _("Enter the notification command ");
buf = mem_malloc(BUFSIZ);
+ buf[0] = '\0';
switch (i) {
case 0: