From: Andre Noll Date: Fri, 23 Nov 2007 09:33:41 +0000 (+0100) Subject: afs.c: Simplify activate_mood_or_playlist(). X-Git-Tag: v0.3.0~103^2~8 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=81e53d96523f470ac2139dc1ee4c954265b37ec7;p=paraslash.git 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. --- 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; }