diff options
author | zuul <zuul@gerrit.asterisk.org> | 2016-08-22 12:35:33 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-08-22 12:35:33 -0500 |
commit | e0c807c33d1ec3bef284e1bf50dfd8d200dc0fd4 (patch) | |
tree | 1da8bf03be1af4d4616702dc3eeeadd5a1bbb57d /res | |
parent | 903a8f17cffdc1c940a780afcb801e68a4702183 (diff) | |
parent | b494b9f88cd6ead7352bdc946ea8c1d82ebaa54c (diff) |
Merge "compilation failed with -Werror=maybe-uninitialized" into 13
Diffstat (limited to 'res')
-rw-r--r-- | res/res_pjsip/pjsip_configuration.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/res/res_pjsip/pjsip_configuration.c b/res/res_pjsip/pjsip_configuration.c index c3012c4b2..64c822c3c 100644 --- a/res/res_pjsip/pjsip_configuration.c +++ b/res/res_pjsip/pjsip_configuration.c @@ -966,7 +966,9 @@ static int dtls_handler(const struct aco_option *opt, { struct ast_sip_endpoint *endpoint = obj; 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 */ front = strtok_r(buf, "_", &back); |