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.
This commit is contained in:
Nikos Tsipinakis 2017-01-01 19:37:32 +02:00
parent 9ec8dbe5db
commit 655abd7cc8

View File

@ -352,15 +352,6 @@ int dunst_main(int argc, char *argv[])
n->allow_markup = false; n->allow_markup = false;
n->plain_text = true; n->plain_text = true;
n->urgency = LOW; 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); notification_init(n, 0);
} }