From fb64a7a187bd7878528b76ebf8fc86159c9ed443 Mon Sep 17 00:00:00 2001 From: Michael Terry Date: Fri, 11 Feb 2011 10:25:25 -0500 Subject: don't abort on various unexpected situations; just spit out critical warning --- src/indicator-application.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/indicator-application.c') diff --git a/src/indicator-application.c b/src/indicator-application.c index cd83bdf..2fbdb13 100644 --- a/src/indicator-application.c +++ b/src/indicator-application.c @@ -279,7 +279,7 @@ service_proxy_cb (GObject * object, GAsyncResult * res, gpointer user_data) } if (error != NULL) { - g_error("Could not grab DBus proxy for %s: %s", INDICATOR_APPLICATION_DBUS_ADDR, error->message); + g_critical("Could not grab DBus proxy for %s: %s", INDICATOR_APPLICATION_DBUS_ADDR, error->message); g_error_free(error); return; } -- cgit v1.2.3 From f614bf09906d0bc9230fbf35522ae2f10a026b41 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 18 Feb 2011 23:32:53 -0600 Subject: Ensures the accessible description is NULL --- src/indicator-application.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/indicator-application.c') diff --git a/src/indicator-application.c b/src/indicator-application.c index 2fbdb13..c18c2b0 100644 --- a/src/indicator-application.c +++ b/src/indicator-application.c @@ -456,7 +456,7 @@ application_added (IndicatorApplication * application, const gchar * iconname, g g_debug("Building new application entry: %s with icon: %s at position %i", dbusaddress, iconname, position); IndicatorApplicationPrivate * priv = INDICATOR_APPLICATION_GET_PRIVATE(application); - ApplicationEntry * app = g_new(ApplicationEntry, 1); + ApplicationEntry * app = g_new0(ApplicationEntry, 1); app->old_service = FALSE; app->icon_theme_path = NULL; -- cgit v1.2.3