]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
satip server: use strempty() function for the uuid check, fixes #5434
authorJaroslav Kysela <perex@perex.cz>
Sat, 15 Dec 2018 19:15:13 +0000 (20:15 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sat, 15 Dec 2018 19:15:13 +0000 (20:15 +0100)
src/satip/server.c

index 4ded46e2d0a8479a42c345b63bbe47831942e71d..7aa1f556c91c7d02dc3daee659fc66d3a1cf3211 100644 (file)
@@ -1086,7 +1086,7 @@ void satip_server_register(void)
     save = 1;
   }
 
-  if (satip_server_conf.satip_uuid == NULL) {
+  if (strempty(satip_server_conf.satip_uuid)) {
     /* This is not UPnP complaint UUID */
     if (uuid_set(&u, NULL)) {
       tvherror(LS_SATIPS, "Unable to create UUID");