mood.c: Add missing initialization of mood_name.
authorAndre Noll <maan@systemlinux.org>
Tue, 23 Oct 2007 11:47:01 +0000 (13:47 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 23 Oct 2007 11:47:01 +0000 (13:47 +0200)
mood.c

diff --git a/mood.c b/mood.c
index 08c2c22..fd82ba4 100644 (file)
--- a/mood.c
+++ b/mood.c
@@ -1007,7 +1007,7 @@ static void close_current_mood(void)
 int reload_current_mood(void)
 {
        int ret;
-       char *mood_name;
+       char *mood_name = NULL;
 
        PARA_NOTICE_LOG("reloading current mood\n");
        if (!current_mood)