Value db_tok_string[0] can be used instead of c.

* ddb/db_expr.c (db_add_expr): Remove unnecessary variable.

---
 ddb/db_expr.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/ddb/db_expr.c b/ddb/db_expr.c
index bd68f92..a74cdec 100644
--- a/ddb/db_expr.c
+++ b/ddb/db_expr.c
@@ -226,16 +226,14 @@ db_add_expr(valuep)
 {
        db_expr_t       lhs, rhs;
        int             t;
-       char            c;
 
        if (!db_mult_expr(&lhs))
            return (FALSE);
 
        t = db_read_token();
        while (t == tPLUS || t == tMINUS || t == tBIT_OR) {
-           c = db_tok_string[0];
            if (!db_mult_expr(&rhs)) {
-               db_printf("Expression syntax error after '%c'\n", c);
+               db_printf("Expression syntax error after '%c'\n", 
db_tok_string[0]);
                db_error(0);
                /*NOTREACHED*/
            }
-- 
1.8.1.4


Reply via email to