summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/iproxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/iproxy.c b/tools/iproxy.c
index 64a9989..e133e26 100644
--- a/tools/iproxy.c
+++ b/tools/iproxy.c
@@ -411,7 +411,7 @@ int main(int argc, char **argv)
}
cdata->fd = c_sock;
cdata->sfd = -1;
- cdata->udid = strdup(device_udid);
+ cdata->udid = (device_udid) ? strdup(device_udid) : NULL;
cdata->lookup_opts = lookup_opts;
cdata->device_port = device_port[i];
#ifdef WIN32