X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=mood.c;h=9f1d7745a3589565045b919af94ad02b3f73602d;hp=24d1de29056812973d33a18a5ed7df378a9f72ad;hb=3f9051d22fcf6e968259946eaf521ac3daac470e;hpb=2a4d7bb5f5cecdbcbda6b9f9b531c919ecc6b161 diff --git a/mood.c b/mood.c index 24d1de29..9f1d7745 100644 --- a/mood.c +++ b/mood.c @@ -1059,7 +1059,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.