Skip to content

Commit

Permalink
awk: fix the evaluate bug related to warning fix
Browse files Browse the repository at this point in the history
Change-Id: I0682468b95fb870d519ac975c94dc5a8f70bdec0
  • Loading branch information
tpruvot committed Jun 3, 2012
1 parent cf3f31c commit 6c86697
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions coreutils/expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ static VALUE *eval6(void)
"quote\0""length\0""match\0""index\0""substr\0";

VALUE *r, *i1, *i2;
VALUE *l = NULL;
VALUE *v = NULL;
static VALUE *l = NULL;
static VALUE *v = NULL;
int key = *G.args ? index_in_strings(keywords, *G.args) + 1 : 0;

if (key == 0) /* not a keyword */
Expand Down
4 changes: 2 additions & 2 deletions editors/awk.c
Original file line number Diff line number Diff line change
Expand Up @@ -2410,11 +2410,11 @@ static var *evaluate(node *op, var *res)
v1 = nvalloc(2);

while (op) {
static struct {
struct {
var *v;
const char *s;
} L;
static struct {
struct {
var *v;
const char *s;
} R;
Expand Down

0 comments on commit 6c86697

Please sign in to comment.