mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
Avoid cppcheck warnings; removing unused vars and a bit of cleanup.
Patch by: junky Review: https://reviewboard.asterisk.org/r/1743/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@362307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -309,7 +309,6 @@ int ast_str_expr(struct ast_str **str, ssize_t maxlen, struct ast_channel *chan,
|
||||
ast_str_set(str, maxlen, "0");
|
||||
} else {
|
||||
if (io.val->type == AST_EXPR_number) {
|
||||
int res_length;
|
||||
ast_str_set(str, maxlen, FP___PRINTF, io.val->u.i);
|
||||
} else if (io.val->u.s) {
|
||||
ast_str_set(str, maxlen, "%s", io.val->u.s);
|
||||
|
Reference in New Issue
Block a user