chan_gtalk: Fix use of uninitialized vars in config handling.

Fix potential use of context, parkinglot, and prefs before they are
initialized.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@359534 65c4cc65-6c06-0410-ace0-fbb531ad65f3
certified/1.8.15
Russell Bryant 13 years ago
parent e470c22ed6
commit ba3230cc45

@ -2077,12 +2077,12 @@ static int gtalk_load_config(void)
{
char *cat = NULL;
struct ast_config *cfg = NULL;
char context[AST_MAX_CONTEXT];
char parkinglot[AST_MAX_CONTEXT];
char context[AST_MAX_CONTEXT] = "";
char parkinglot[AST_MAX_CONTEXT] = "";
int allowguest = 1;
struct ast_variable *var;
struct gtalk *member;
struct ast_codec_pref prefs;
struct ast_codec_pref prefs = { "", };
struct aji_client_container *clients;
struct gtalk_candidate *global_candidates = NULL;
struct hostent *hp;

Loading…
Cancel
Save