mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 07:35:18 +00:00
Avoid cppcheck warnings; removing unused vars and a bit of cleanup.
Patch by: Clod Patry Review: https://reviewboard.asterisk.org/r/1651 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@354429 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -584,7 +584,6 @@ static int listfilter(struct ast_channel *chan, const char *cmd, char *parse, ch
|
||||
AST_APP_ARG(delimiter);
|
||||
AST_APP_ARG(fieldvalue);
|
||||
);
|
||||
const char *ptr;
|
||||
struct ast_str *orig_list = ast_str_thread_get(&tmp_buf, 16);
|
||||
const char *begin, *cur, *next;
|
||||
int dlen, flen, first = 1;
|
||||
@@ -624,7 +623,7 @@ static int listfilter(struct ast_channel *chan, const char *cmd, char *parse, ch
|
||||
}
|
||||
|
||||
/* If the string isn't there, just copy out the string and be done with it. */
|
||||
if (!(ptr = strstr(ast_str_buffer(orig_list), args.fieldvalue))) {
|
||||
if (!strstr(ast_str_buffer(orig_list), args.fieldvalue)) {
|
||||
if (buf) {
|
||||
ast_copy_string(buf, ast_str_buffer(orig_list), len);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user