Silence unreferenced local variable warning

This commit is contained in:
twinaphex 2018-01-04 16:55:28 +01:00
parent 3033c1586a
commit 99c00b438b

View File

@ -1932,13 +1932,15 @@ static void config_set_defaults(void)
**/
static config_file_t *open_default_config_file(void)
{
bool has_application_data;
bool has_application_data = false;
size_t path_size = PATH_MAX_LENGTH * sizeof(char);
char *application_data = (char*)malloc(PATH_MAX_LENGTH * sizeof(char));
char *conf_path = (char*)malloc(PATH_MAX_LENGTH * sizeof(char));
char *app_path = (char*)malloc(PATH_MAX_LENGTH * sizeof(char));
config_file_t *conf = NULL;
(void)has_application_data;
application_data[0] = conf_path[0] = app_path[0] = '\0';
(void)path_size;