From 655abd7cc883adfe35476e987a9a2abc66c78539 Mon Sep 17 00:00:00 2001 From: Nikos Tsipinakis Date: Sun, 1 Jan 2017 19:37:32 +0200 Subject: [PATCH] Remove unnecessary notification field initializations Since notification_create was implemented memory is zeroed when a notification is allocated, as such we don't need to manually set things to null. --- src/dunst.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/dunst.c b/src/dunst.c index 241524c..9364a00 100644 --- a/src/dunst.c +++ b/src/dunst.c @@ -352,15 +352,6 @@ int dunst_main(int argc, char *argv[]) n->allow_markup = false; n->plain_text = true; n->urgency = LOW; - n->icon = NULL; - n->raw_icon = NULL; - n->category = NULL; - n->msg = NULL; - n->dbus_client = NULL; - n->color_strings[0] = NULL; - n->color_strings[1] = NULL; - n->actions = NULL; - n->urls = NULL; notification_init(n, 0); }