From d9d2ccb3d4f8fdc8b853b5792220a36e22c6d8fc Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Mon, 8 Oct 2012 08:11:32 +0200 Subject: [PATCH] fix bad frees --- dunst.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dunst.c b/dunst.c index 916db49..3acbda2 100644 --- a/dunst.c +++ b/dunst.c @@ -188,12 +188,12 @@ void warn(const char *text, int urg) if (n == NULL) die("Unable to allocate memory", EXIT_FAILURE); - n->appname = "dunst"; + n->appname = strdup("dunst"); n->summary = strdup(text); if (n->summary == NULL) die("Unable to allocate memory", EXIT_FAILURE); - n->body = ""; - n->icon = ""; + n->body = strdup(""); + n->icon = strdup(""); n->timeout = 0; n->urgency = urg; n->dbus_client = NULL;