From 890ac04a0b4b6b6c5e3632de63ac844729f549dc Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Sun, 3 Aug 2008 22:05:56 +0200 Subject: Fix mem allocation in config initialization. Signed-off-by: Matt Colyer --- 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 399e054..f93cff4 100644 --- a/src/userpref.c +++ b/src/userpref.c @@ -237,7 +237,7 @@ char* get_host_certificate() int init_config_file(char* host_id, char* root_private_key, char* host_private_key, char* root_cert, char* host_cert) { - if (!host_id || !root_private_key || !host_private_key) + if (!host_id || !root_private_key || !host_private_key || !root_cert || !host_cert) return 0; gchar* config_file = g_build_path(G_DIR_SEPARATOR_S, g_get_user_config_dir(), LIBIPHONE_CONF_DIR, LIBIPHONE_CONF_FILE, NULL); -- cgit v1.1-32-gdbae