summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2016-09-05 18:55:37 +0300
committerTanu Kaskinen <tanuk@iki.fi>2016-09-05 18:59:27 +0300
commitde2f560137f1681ed64af1b645565ce97941dc66 (patch)
tree67bd68f630b97df21caf0175820145afb978b365
parent963b3ea695a7dd62efd7cb3ccbc930d53b88fabf (diff)
zeroconf-publish: fix uninitialized variable
get_icon_name() returns the icon_name variable, and without this change the function might exit before icon_name is initialized.
-rw-r--r--src/modules/module-zeroconf-publish.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-zeroconf-publish.c b/src/modules/module-zeroconf-publish.c
index 1816c749d..c101b818d 100644
--- a/src/modules/module-zeroconf-publish.c
+++ b/src/modules/module-zeroconf-publish.c
@@ -670,7 +670,7 @@ static int avahi_process_msg(pa_msgobject *o, int code, void *data, int64_t offs
static char *get_icon_name(pa_module*m) {
const char *interface = HOSTNAME_DBUS_INTERFACE;
const char *property = HOSTNAME_DBUS_ICON_PROPERTY;
- char *icon_name;
+ char *icon_name = NULL;
pa_dbus_connection *bus;
DBusError error;
DBusMessageIter args;