various: Fix GCC 11.2 compilation issues.

* Initialize some variables that are never used anyway.

* Use valid pointers instead of integers cast to void pointers when
  calling pthread_setspecific().

ASTERISK-29711 #close
ASTERISK-29713 #close

Change-Id: I8728cd6f2f4b28e0e48113c5da450b768c2a6683
This commit is contained in:
Sean Bright
2021-10-29 15:05:18 +00:00
parent 9ff0c31335
commit c206203a5c
3 changed files with 4 additions and 4 deletions

View File

@@ -2863,8 +2863,8 @@ static struct ast_config *ast_config_internal_load(const char *filename, struct
static struct ast_config *ast_config_internal_load(const char *filename, struct ast_config *cfg, int withcomments, const char *suggested_incl_file)
{
char db[256];
char table[256];
char db[256] = "";
char table[256] = "";
struct ast_config_engine *loader = &text_file_engine;
struct ast_config *result;