From 22e3367fd177a4a61dcc05a1ca83f28297a391fb Mon Sep 17 00:00:00 2001 From: vysheng Date: Tue, 12 Nov 2013 15:58:16 +0400 Subject: [PATCH] Fixed errors without libconfig --- main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.c b/main.c index 7873210..d48e698 100644 --- a/main.c +++ b/main.c @@ -276,6 +276,10 @@ void parse_config (void) { #else void parse_config (void) { printf ("libconfig not enabled\n"); + assert (asprintf (&auth_file_name, "%s/%s/%s", get_home_directory (), CONFIG_DIRECTORY, AUTH_KEY_FILE) >= 0); + assert (asprintf (&state_file_name, "%s/%s/%s", get_home_directory (), CONFIG_DIRECTORY, STATE_FILE) >= 0); + assert (asprintf (&secret_chat_file_name, "%s/%s/%s", get_home_directory (), CONFIG_DIRECTORY, SECRET_CHAT_FILE) >= 0); + assert (asprintf (&downloads_directory, "%s/%s/%s", get_home_directory (), CONFIG_DIRECTORY, DOWNLOADS_DIRECTORY) >= 0); } #endif