diff options
author | Martin Szulecki | 2014-10-06 17:43:25 +0200 |
---|---|---|
committer | Martin Szulecki | 2014-10-06 17:43:25 +0200 |
commit | 1cdcd2205778567d11ea8261be3dc7d14c4746d0 (patch) | |
tree | 0bfe2417ed2e91504caddec0f15749028fcf618d /src | |
parent | bbce08f176a79f89b9228e2ceb964c0cc1f2c779 (diff) | |
download | libusbmuxd-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".
Diffstat (limited to 'src')
-rw-r--r-- | src/libusbmuxd.c | 2 |
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; |