From: Andre Noll Date: Sat, 29 Apr 2023 18:08:38 +0000 (+0200) Subject: afs: Improve error message in init_admissible_files(). X-Git-Tag: v0.7.3~24 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=53acbbcaef77a64a38c916261defcb33abc7d780;p=paraslash.git afs: Improve error message in init_admissible_files(). arg may well be NULL here, so print "dummy" in this case. --- diff --git a/afs.c b/afs.c index 000aaa54..78e42eae 100644 --- a/afs.c +++ b/afs.c @@ -529,8 +529,8 @@ static void init_admissible_files(const char *arg) { int ret = activate_mood_or_playlist(arg, NULL); if (ret < 0) { - PARA_WARNING_LOG("could not activate %s: %s\n", arg, - para_strerror(-ret)); + PARA_WARNING_LOG("could not activate %s: %s\n", arg? + arg : "dummy", para_strerror(-ret)); if (arg) activate_mood_or_playlist(NULL, NULL); }