Merge "compilation failed with -Werror=maybe-uninitialized"

changes/88/3688/1
zuul 9 years ago committed by Gerrit Code Review
commit 27813c7439

@ -963,7 +963,9 @@ static int dtls_handler(const struct aco_option *opt,
{ {
struct ast_sip_endpoint *endpoint = obj; struct ast_sip_endpoint *endpoint = obj;
char *name = ast_strdupa(var->name); char *name = ast_strdupa(var->name);
char *front, *back, *buf = name; char *front = NULL;
char *back = NULL;
char *buf = name;
/* strip out underscores in the name */ /* strip out underscores in the name */
front = strtok_r(buf, "_", &back); front = strtok_r(buf, "_", &back);

Loading…
Cancel
Save