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.
This commit is contained in:
Tanu Kaskinen 2016-09-05 18:55:37 +03:00
parent 963b3ea695
commit de2f560137

View file

@ -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) { static char *get_icon_name(pa_module*m) {
const char *interface = HOSTNAME_DBUS_INTERFACE; const char *interface = HOSTNAME_DBUS_INTERFACE;
const char *property = HOSTNAME_DBUS_ICON_PROPERTY; const char *property = HOSTNAME_DBUS_ICON_PROPERTY;
char *icon_name; char *icon_name = NULL;
pa_dbus_connection *bus; pa_dbus_connection *bus;
DBusError error; DBusError error;
DBusMessageIter args; DBusMessageIter args;