diff options
author | Jonathan Beck | 2009-01-22 22:21:12 +0100 |
---|---|---|
committer | Jonathan Beck | 2009-01-22 22:21:12 +0100 |
commit | 0934d1ac021dfb7907e4b580b38aa4a938cf2180 (patch) | |
tree | eceb50d36559f5442c0123320336c5c7d96e996a /src/usbmux.c | |
parent | 7f2e0f5f719a7092b45b0b7d538137a9b7d78567 (diff) | |
download | libimobiledevice-0934d1ac021dfb7907e4b580b38aa4a938cf2180.tar.gz libimobiledevice-0934d1ac021dfb7907e4b580b38aa4a938cf2180.tar.bz2 |
Move things around and clean up some code.
Diffstat (limited to 'src/usbmux.c')
-rw-r--r-- | src/usbmux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/usbmux.c b/src/usbmux.c index eb7ec97..5eaa1d1 100644 --- a/src/usbmux.c +++ b/src/usbmux.c @@ -313,6 +313,7 @@ iphone_error_t iphone_mux_recv(iphone_umux_client_t client, char *data, uint32_t } else { memcpy(data, client->recv_buffer, client->r_len); free(client->recv_buffer); // don't need to deal with anymore, but... + client->recv_buffer = NULL; offset = client->r_len; // see #2b, above client->r_len = 0; } |