summaryrefslogtreecommitdiffstats
path: root/src/userpref.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/userpref.c')
-rw-r--r--src/userpref.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/userpref.c b/src/userpref.c
index 6e62000..4aab67b 100644
--- a/src/userpref.c
+++ b/src/userpref.c
@@ -328,8 +328,10 @@ static int userpref_get_file_contents(const char *file, gnutls_datum_t * data)
328 g_free(filepath); 328 g_free(filepath);
329 329
330 /* Add it to the gnutls_datnum_t structure */ 330 /* Add it to the gnutls_datnum_t structure */
331 data->data = (uint8_t*) content; 331 if (success) {
332 data->size = size; 332 data->data = (uint8_t*) content;
333 data->size = size;
334 }
333 335
334 return success; 336 return success;
335} 337}