From 81e53d96523f470ac2139dc1ee4c954265b37ec7 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 23 Nov 2007 10:33:41 +0100 Subject: [PATCH] afs.c: Simplify activate_mood_or_playlist(). This also gets rid of warning: `mode' might be used uninitialized in this function on gcc-3.3.3. --- afs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/afs.c b/afs.c index 8a60166f..6c60b086 100644 --- a/afs.c +++ b/afs.c @@ -541,7 +541,7 @@ static int activate_mood_or_playlist(char *arg, int *num_admissible) ret = change_current_mood(arg + 2); mode = PLAY_MODE_MOOD; } else - ret = -E_AFS_SYNTAX; + return -E_AFS_SYNTAX; if (ret < 0) return ret; } -- 2.39.5