[Coverity] Add proper NULL check before comparison

This commit is contained in:
baldurk committed 2016-09-14 17:41:14 +02:00
1 parent 31a06effb6
commit c9eeef3151
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -477,7 +477,7 @@ extern "C" RENDERDOC_API uint32_t RENDERDOC_CC RENDERDOC_EnumerateRemoteTargets(
if(host != NULL && host[0] != '\0')
s = host;
if(!strncmp(host, "adb:", 4))
if(host != NULL && !strncmp(host, "adb:", 4))
{
s = "127.0.0.1";