summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-10-06 17:43:25 +0200
committerGravatar Martin Szulecki2014-10-06 17:43:25 +0200
commit1cdcd2205778567d11ea8261be3dc7d14c4746d0 (patch)
tree0bfe2417ed2e91504caddec0f15749028fcf618d
parentbbce08f176a79f89b9228e2ceb964c0cc1f2c779 (diff)
downloadlibusbmuxd-1cdcd2205778567d11ea8261be3dc7d14c4746d0.tar.gz
libusbmuxd-1cdcd2205778567d11ea8261be3dc7d14c4746d0.tar.bz2
Fix undefined pointer operation warning from latest Clang
Fixes #20, which caused a warning due to "-Wtautological-pointer-compare".
-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;