mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 03:18:30 +00:00
Fix coverity UNUSED_VALUE findings in core support level files
Most of these were just saving returned values without using them and in some cases the variable being saved to could be removed as well. (issue ASTERISK-19672) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@368738 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -566,7 +566,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;
|
||||
@@ -606,7 +605,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