summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-09-13 03:07:53 +0200
committerGravatar Martin Szulecki2013-09-17 11:43:34 +0200
commit193d032a040935664e7428d366345a6f6644a29a (patch)
treea62b1ffeec2dfb813776cf56b443e10369479675
parentbf150114c64bb0ed6e97edffe0709eea8b2195c2 (diff)
downloadlibimobiledevice-193d032a040935664e7428d366345a6f6644a29a.tar.gz
libimobiledevice-193d032a040935664e7428d366345a6f6644a29a.tar.bz2
lockdownd: remove unused udid variable in reconnect function
-rw-r--r--src/lockdown.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lockdown.c b/src/lockdown.c
index 3e9164c..26af6a6 100644
--- a/src/lockdown.c
+++ b/src/lockdown.c
@@ -705,7 +705,6 @@ static lockdownd_error_t lockdownd_client_reconnect(idevice_t device, lockdownd_
{
lockdownd_error_t ret = LOCKDOWN_E_SUCCESS;
int attempts = 3;
- char *udid = NULL;
/* free resources of lockownd_client */
ret = lockdownd_client_free_simple(*client);
@@ -722,9 +721,6 @@ static lockdownd_error_t lockdownd_client_reconnect(idevice_t device, lockdownd_
sleep(1);
} while(attempts--);
- free(udid);
- udid = NULL;
-
return ret;
}