X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=mood.c;h=fe8ee8ad9915cdc3db089a8f8584883537963111;hp=b5047d3745056703b8afab1ac85e81777cadaca7;hb=749779fab22f802e41472a31db5a84b9b6314996;hpb=383d1bfb5084ea5a475e408d3cc9d2e2a3de5b88 diff --git a/mood.c b/mood.c index b5047d37..fe8ee8ad 100644 --- a/mood.c +++ b/mood.c @@ -893,7 +893,9 @@ int reload_current_mood(void) int moods_event_handler(enum afs_events event, __a_unused struct para_buffer *pb, void *data) { - switch(event) { + if (!current_mood) + return 0; + switch (event) { /* * The three blob events might change the set of admissible files, * so we must reload the score list.