diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libusbmuxd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libusbmuxd.c b/src/libusbmuxd.c index 4e2054d..ef3d155 100644 --- a/src/libusbmuxd.c +++ b/src/libusbmuxd.c @@ -1098,7 +1098,7 @@ int usbmuxd_read_buid(char **buid) { int sfd; int tag; - int ret = 0; + int ret = -1; if (!buid) { return -EINVAL; @@ -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; } |