Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
satip: coverity fixes
  • Loading branch information
perexg committed Oct 3, 2014
1 parent 1fe8496 commit 1069ff4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/input/mpegts/satip/satip.c
Expand Up @@ -385,7 +385,7 @@ satip_device_create( satip_device_info_t *info )

if (!tvh_hardware_create0((tvh_hardware_t*)sd, &satip_device_class,
uuid.hex, conf)) {
free(sd);
/* Note: sd is freed in above fcn */
return NULL;
}

Expand Down Expand Up @@ -882,9 +882,9 @@ satip_discovery_service_received
/* Sanity checks */
if (st == NULL || strcmp(st, "urn:ses-com:device:SatIPServer:1"))
return;
if (uuid == NULL && strlen(uuid) < 16)
if (uuid == NULL || strlen(uuid) < 16)
return;
if (location == NULL && strncmp(location, "http://", 7))
if (location == NULL || strncmp(location, "http://", 7))
return;
if (bootid == NULL || configid == NULL || server == NULL)
return;
Expand Down

0 comments on commit 1069ff4

Please sign in to comment.