Skip to content

Commit

Permalink
Fix undefined pointer operation warning from latest Clang
Browse files Browse the repository at this point in the history
Fixes libimobiledevice#20, which caused a warning due to "-Wtautological-pointer-compare".
  • Loading branch information
FunkyM committed Oct 6, 2014
1 parent bbce08f commit 1cdcd22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libusbmuxd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1cdcd22

Please sign in to comment.