diff options
author | zuul <zuul@gerrit.asterisk.org> | 2016-08-22 11:22:13 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-08-22 11:22:13 -0500 |
commit | 27813c74399c6633d67cc51a2207cab40f0b3d4f (patch) | |
tree | 5b99477eb67a13d2e488ecfcd9e5c92cafd10d71 /res | |
parent | 47c9acb5b21a55f8853e3699d427fd7cfe83154b (diff) | |
parent | 41ee14bfaed4b184d8a577b263c6ab5ab741e35b (diff) |
Merge "compilation failed with -Werror=maybe-uninitialized"
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 3bced1180..23aa522ce 100644 --- a/res/res_pjsip/pjsip_configuration.c +++ b/res/res_pjsip/pjsip_configuration.c @@ -963,7 +963,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); |