Skip to content

Commit

Permalink
iproxy: Fix crash when no UDID is given
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed May 29, 2020
1 parent 3ae1cbb commit d79d190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/iproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d79d190

Please sign in to comment.