Skip to content
Snippets Groups Projects
Commit 846050f6 authored by David Vossel's avatar David Vossel
Browse files

fixes some coding guideline issue

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@271300 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent a1fe641a
Branches
Tags
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment