]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
wizard: coverity fix
authorJaroslav Kysela <perex@perex.cz>
Wed, 1 Jun 2016 07:38:33 +0000 (09:38 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 1 Jun 2016 07:38:33 +0000 (09:38 +0200)
src/wizard.c

index 438383c7c7de951f4456392d15459860b36ab719..226eb047d996cc8a7ae6916e1c998b62a784c439 100644 (file)
@@ -307,7 +307,7 @@ static void login_changed(idnode_t *in)
       passwd_entry_destroy(pw, 1);
   }
 
-  s = w->admin_username[0] ? (w->admin_username ?: "") : "*";
+  s = w->admin_username[0] ? w->admin_username : "*";
   conf = htsmsg_create_map();
   htsmsg_add_bool(conf, "enabled", 1);
   htsmsg_add_str(conf, "prefix", w->network);