diff options
Diffstat (limited to 'channels/sip')
-rw-r--r-- | channels/sip/reqresp_parser.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/channels/sip/reqresp_parser.c b/channels/sip/reqresp_parser.c index bb4fba0d7..d589bec9d 100644 --- a/channels/sip/reqresp_parser.c +++ b/channels/sip/reqresp_parser.c @@ -991,7 +991,6 @@ int get_in_brackets_full(char *tmp,char **out,char **residue) *residue = ""; } - if (ast_strlen_zero(tmp)) { return 1; } @@ -1043,17 +1042,18 @@ int get_in_brackets_full(char *tmp,char **out,char **residue) if (out) { *out = tmp; } + return 1; } char *get_in_brackets(char *tmp) { char *out; - if((get_in_brackets_full(tmp, &out, NULL))) { - return tmp; - } else { - return out; -} + + if ((get_in_brackets_full(tmp, &out, NULL))) { + return tmp; + } + return out; } AST_TEST_DEFINE(get_in_brackets_test) |