[hackers] [scc] Call chklvalue() in address() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 4 Sep 2015 20:22:40 +0200 (CEST)

commit 7e3cb239304785b9a53e2e04709d34a7ad92815c
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Sep 4 20:19:49 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Sep 4 20:19:49 2015 +0200

    Call chklvalue() in address()

diff --git a/cc1/expr.c b/cc1/expr.c
index bf7282f..b6efe5c 100644
--- a/cc1/expr.c
+++ b/cc1/expr.c
_AT_@ -465,8 +465,7 @@ incdec(Node *np, char op)
 static Node *
 address(char op, Node *np)
 {
- if (!np->lvalue)
- error("lvalue required in unary expression");
+ chklvalue(np);
         if (np->symbol && (np->sym->flags & ISREGISTER))
                 error("address of register variable '%s' requested", yytext);
         if (np->op == OPTR) {
Received on Fri Sep 04 2015 - 20:22:40 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 04 2015 - 20:24:32 CEST