X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=mood.c;h=e85cf36a35b9e533370bddd95c5c5db74a214e85;hb=b00a6578dcddd3651aac667a33cecebbf7761416;hp=9cdfd011a6ef4f2ab9fb180892f6412247eb68fe;hpb=fca08641935a5bdf6570a14e0b7aeed536745060;p=paraslash.git diff --git a/mood.c b/mood.c index 9cdfd011..e85cf36a 100644 --- a/mood.c +++ b/mood.c @@ -630,9 +630,10 @@ int mood_load(const char *mood_name, char **msg) ret = aa.m->stats.num; mood_unload(); current_mood = aa.m; + ret = 1; out: free(aa.array); - if (ret < 0) + if (ret <= 0) /* error, or no admissible files */ destroy_mood(aa.m); return ret; }