Skip to content

Commit

Permalink
Return 0 on success in usbmuxd_read_buid()
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Sep 11, 2014
1 parent 36d522c commit e5fbc1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libusbmuxd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ int usbmuxd_read_buid(char **buid)
{
int sfd;
int tag;
int ret = 0;
int ret = -1;

if (!buid) {
return -EINVAL;
Expand All @@ -1124,6 +1124,7 @@ int usbmuxd_read_buid(char **buid)
if (node && plist_get_node_type(node) == PLIST_STRING) {
plist_get_string_val(node, buid);
}
ret = 0;
} else if (ret == 1) {
ret = -(int)rc;
}
Expand Down

0 comments on commit e5fbc1d

Please sign in to comment.