changeset 11997:9d451c9cc3d9

[gaim-migrate @ 14290] hopefully fix a warning i'm not getting committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Sun, 06 Nov 2005 23:20:21 +0000
parents ecd33ffb0b0a
children 191cbb614925
files src/gtkstatusbox.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkstatusbox.c	Sun Nov 06 23:09:07 2005 +0000
+++ b/src/gtkstatusbox.c	Sun Nov 06 23:20:21 2005 +0000
@@ -285,7 +285,7 @@
 	char *filename;
 	GaimPluginProtocolInfo *prpl_info = NULL;
 	GaimPlugin *plugin;
-	const char *proto_name, *type_name;
+	const char *proto_name = NULL, *type_name;
 	GdkPixbuf *pixbuf, *scale = NULL, *emblem;
 
 
@@ -294,6 +294,8 @@
 	if (plugin != NULL) {
 		prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(plugin);
 		proto_name = prpl_info->list_icon(account, NULL);
+	} else {
+		return NULL;
 	}
 
 	g_snprintf(basename2, sizeof(basename2), "%s.png",