changeset 8820:86944ae7c033

[gaim-migrate @ 9582] uninitialized variables are not cool committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 26 Apr 2004 16:35:52 +0000
parents d7ed3a4bdf35
children 408d2f135146
files src/away.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/away.c	Mon Apr 26 16:27:07 2004 +0000
+++ b/src/away.c	Mon Apr 26 16:35:52 2004 +0000
@@ -287,7 +287,7 @@
 
 void do_rem_away_mess(gchar *name)
 {
-	struct away_message *a;
+	struct away_message *a = NULL;
 	struct away_message *default_away = NULL;
 	const char *default_away_name;
 	GSList *l;
@@ -300,7 +300,7 @@
 	}
 	g_free(name);
 
-	if (l == NULL) {
+	if (l == NULL || a == NULL) {
 		/* Could not find away message! */
 		return;
 	}