Shut up cppcheck
authorAlan T. DeKok <aland@freeradius.org>
Mon, 26 Jan 2015 21:45:53 +0000 (16:45 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 26 Jan 2015 21:47:05 +0000 (16:47 -0500)
src/modules/rlm_expr/rlm_expr.c

index 8831b0a..687d9e3 100644 (file)
@@ -334,9 +334,9 @@ static bool calc_result(REQUEST *request, int64_t lhs, expr_token_t op, int64_t
                if (rhs == 0) {
                        RDEBUG("Division by zero!");
                        return false;
+               } else {
+                       *answer = lhs / rhs;
                }
-
-               *answer = lhs / rhs;
                break;
 
        case TOKEN_REMAINDER: