isl_input.c: read_factor: declare variables at start of code block
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 28 Apr 2013 11:59:08 +0000 (28 13:59 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 28 Apr 2013 11:59:11 +0000 (28 13:59 +0200)
Reported-by: William Bader <william.bader@gmail.com>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_input.c

index e93233d..7400629 100644 (file)
@@ -1690,8 +1690,9 @@ static __isl_give isl_pw_qpolynomial *read_factor(struct isl_stream *s,
                pwqp = isl_pw_qpolynomial_pow(pwqp, pow);
        } else if (tok->type == ISL_TOKEN_VALUE) {
                struct isl_token *tok2;
-               tok2 = isl_stream_next_token(s);
                isl_qpolynomial *qp;
+
+               tok2 = isl_stream_next_token(s);
                if (tok2 && tok2->type == '/') {
                        isl_token_free(tok2);
                        tok2 = next_token(s);