# HG changeset patch # User Nathan Walp # Date 1082997352 0 # Node ID 86944ae7c033815605a39bfd391bc5de387ed675 # Parent d7ed3a4bdf356ab02a932cfcd55bfb111f33266a [gaim-migrate @ 9582] uninitialized variables are not cool committer: Tailor Script diff -r d7ed3a4bdf35 -r 86944ae7c033 src/away.c --- 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; }