summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2011-10-08 19:26:53 +0200
committerGravatar Martin Szulecki2012-03-19 01:45:26 +0100
commit6e092c84d060fe4e0e9ddea8801c42425cd59afa (patch)
tree28eee84d84aa777e30639db98d633876901bd38b
parent89dd2654339ad3f0123798e453513e8c62d0fd77 (diff)
downloadlibimobiledevice-6e092c84d060fe4e0e9ddea8801c42425cd59afa.tar.gz
libimobiledevice-6e092c84d060fe4e0e9ddea8801c42425cd59afa.tar.bz2
Fix uninitialized variable
-rw-r--r--src/userpref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userpref.c b/src/userpref.c
index 4c72981..d9dcaec 100644
--- a/src/userpref.c
+++ b/src/userpref.c
@@ -604,7 +604,7 @@ userpref_error_t userpref_remove_device_public_key(const char *uuid)
*/
static int userpref_get_file_contents(const char *file, key_data_t * data)
{
- int success;
+ int success = 0;
unsigned long int size = 0;
unsigned char *content = NULL;
const char *config_path;