[hackers] [scc] Fix cast() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Mon, 7 Sep 2015 23:44:56 +0200 (CEST)

commit 0f0cbf03f9dcbee4dba981e29a7ea43d96e648e7
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Sep 7 23:19:24 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Mon Sep 7 23:19:24 2015 +0200

    Fix cast()
    
    lp was not initialized in any place.

diff --git a/cc1/expr.c b/cc1/expr.c
index 96e8e56..2e2c546 100644
--- a/cc1/expr.c
+++ b/cc1/expr.c
_AT_@ -694,7 +694,8 @@ cast(void)
                         error("cast specify a function type");
                 default:
                         expect(')');
- if ((rp = convert(cast(), tp, 1)) == NULL)
+ lp = cast();
+ if ((rp = convert(lp, tp, 1)) == NULL)
                                 error("bad type convertion requested");
                         rp->lvalue = lp->lvalue;
                 }
Received on Mon Sep 07 2015 - 23:44:56 CEST

This archive was generated by hypermail 2.3.0 : Mon Sep 07 2015 - 23:48:13 CEST