aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-02-03 22:12:26 -0600
committerTed Gould <ted@gould.cx>2012-02-03 22:12:26 -0600
commit4145c58e2ee3191f2557f1e558adda0d1f387223 (patch)
treed074c43717183ddf6ee941520ec6872da59b7ef9 /src
parentee1ac0d31371b8c472c44715eb7dce36b2793cc5 (diff)
downloadayatana-indicator-application-4145c58e2ee3191f2557f1e558adda0d1f387223.tar.gz
ayatana-indicator-application-4145c58e2ee3191f2557f1e558adda0d1f387223.tar.bz2
ayatana-indicator-application-4145c58e2ee3191f2557f1e558adda0d1f387223.zip
Making sure to initial string pointers
Diffstat (limited to 'src')
-rw-r--r--src/indicator-application.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/indicator-application.c b/src/indicator-application.c
index 577008d..2c4f232 100644
--- a/src/indicator-application.c
+++ b/src/indicator-application.c
@@ -802,16 +802,16 @@ receive_signal (GDBusProxy * proxy, gchar * sender_name, gchar * signal_name,
}
if (g_strcmp0(signal_name, "ApplicationAdded") == 0) {
- gchar * iconname;
+ gchar * iconname = NULL;
gint position;
- gchar * dbusaddress;
- gchar * dbusobject;
- gchar * icon_theme_path;
- gchar * label;
- gchar * guide;
- gchar * accessible_desc;
- gchar * hint;
- gchar * title;
+ gchar * dbusaddress = NULL;
+ gchar * dbusobject = NULL;
+ gchar * icon_theme_path = NULL;
+ gchar * label = NULL;
+ gchar * guide = NULL;
+ gchar * accessible_desc = NULL;
+ gchar * hint = NULL;
+ gchar * title = NULL;
g_variant_get (parameters, "(sisossssss)", &iconname,
&position, &dbusaddress, &dbusobject,
&icon_theme_path, &label, &guide,
@@ -836,8 +836,8 @@ receive_signal (GDBusProxy * proxy, gchar * sender_name, gchar * signal_name,
}
else if (g_strcmp0(signal_name, "ApplicationIconChanged") == 0) {
gint position;
- gchar * iconname;
- gchar * icondesc;
+ gchar * iconname = NULL;
+ gchar * icondesc = NULL;
g_variant_get (parameters, "(iss)", &position, &iconname, &icondesc);
application_icon_changed(self, position, iconname, icondesc);
g_free(iconname);
@@ -845,15 +845,15 @@ receive_signal (GDBusProxy * proxy, gchar * sender_name, gchar * signal_name,
}
else if (g_strcmp0(signal_name, "ApplicationIconThemePathChanged") == 0) {
gint position;
- gchar * icon_theme_path;
+ gchar * icon_theme_path = NULL;
g_variant_get (parameters, "(is)", &position, &icon_theme_path);
application_icon_theme_path_changed(self, position, icon_theme_path);
g_free(icon_theme_path);
}
else if (g_strcmp0(signal_name, "ApplicationLabelChanged") == 0) {
gint position;
- gchar * label;
- gchar * guide;
+ gchar * label = NULL;
+ gchar * guide = NULL;
g_variant_get (parameters, "(iss)", &position, &label, &guide);
application_label_changed(self, position, label, guide);
g_free(label);
@@ -915,16 +915,16 @@ get_applications (GObject * obj, GAsyncResult * res, gpointer user_data)
static void
get_applications_helper (IndicatorApplication * self, GVariant * variant)
{
- gchar * icon_name;
+ gchar * icon_name = NULL;
gint position;
- gchar * dbus_address;
- gchar * dbus_object;
- gchar * icon_theme_path;
- gchar * label;
- gchar * guide;
- gchar * accessible_desc;
- gchar * hint;
- gchar * title;
+ gchar * dbus_address = NULL;
+ gchar * dbus_object = NULL;
+ gchar * icon_theme_path = NULL;
+ gchar * label = NULL;
+ gchar * guide = NULL;
+ gchar * accessible_desc = NULL;
+ gchar * hint = NULL;
+ gchar * title = NULL;
g_variant_get(variant, "(sisossssss)", &icon_name, &position,
&dbus_address, &dbus_object, &icon_theme_path, &label,
&guide, &accessible_desc, &hint, &title);