summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libusbmuxd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libusbmuxd.c b/src/libusbmuxd.c
index 3456bfb..4997f3c 100644
--- a/src/libusbmuxd.c
+++ b/src/libusbmuxd.c
@@ -572,7 +572,7 @@ static int usbmuxd_listen_inotify()
/* check that it's ours */
if (pevent->mask & IN_CREATE &&
pevent->len &&
- pevent->name != NULL &&
+ pevent->name[0] != 0 &&
strcmp(pevent->name, USBMUXD_SOCKET_NAME) == 0) {
sfd = connect_usbmuxd_socket ();
goto end;