]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
access: add NULL check to access_get_theme - coverity
authorJaroslav Kysela <perex@perex.cz>
Tue, 4 Apr 2017 14:05:21 +0000 (16:05 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 4 Apr 2017 14:05:21 +0000 (16:05 +0200)
src/access.c

index 3f02714b8f3b7c35460ff95c928fe11f2ac72097..060ae08e191187eb3c1586c425d23de71b453f70 100644 (file)
@@ -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";