From 6e092c84d060fe4e0e9ddea8801c42425cd59afa Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 8 Oct 2011 19:26:53 +0200 Subject: Fix uninitialized variable --- src/userpref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/userpref.c') 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; -- cgit v1.1-32-gdbae