Skip to content

Commit

Permalink
Silence unreferenced local variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Jan 4, 2018
1 parent 3033c15 commit 99c00b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 99c00b4

Please sign in to comment.