From: Jaroslav Kysela Date: Tue, 4 Apr 2017 14:05:21 +0000 (+0200) Subject: access: add NULL check to access_get_theme - coverity X-Git-Tag: v4.2.1~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=953087b3797e3a6f7245680aea5b23ccdf50d36a;p=thirdparty%2Ftvheadend.git access: add NULL check to access_get_theme - coverity --- diff --git a/src/access.c b/src/access.c index 3f02714b8..060ae08e1 100644 --- a/src/access.c +++ b/src/access.c @@ -298,6 +298,8 @@ access_get_lang(access_t *a, const char *lang) const char * access_get_theme(access_t *a) { + if (a == NULL) + return "blue"; if (a->aa_theme == NULL || a->aa_theme[0] == '\0') { if (config.theme_ui == NULL || config.theme_ui[0] == '\0') return "blue";