Skip to content

Commit

Permalink
Fix: Add initialization to remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h-abdelsalam authored and timopollmeier committed Oct 20, 2023
1 parent 46d858a commit eb770a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/gsad.c
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ exec_gmp_get (http_connection_t *con, gsad_connection_info_t *con_info,
const int CMD_MAX_SIZE = 27; /* delete_trash_lsc_credential */
params_t *params = con_info->params;
gvm_connection_t connection;
char *res = NULL, *comp;
char *res = NULL, *comp = NULL;
gsize res_len = 0;
http_response_t *response;
cmd_response_data_t *response_data;
Expand Down Expand Up @@ -1559,8 +1559,6 @@ exec_gmp_get (http_connection_t *con, gsad_connection_info_t *con_info,
res = comp;
}
}
else
comp = NULL;

response = MHD_create_response_from_buffer (res_len, (void *) res,
MHD_RESPMEM_MUST_FREE);
Expand Down

0 comments on commit eb770a6

Please sign in to comment.