aboutsummaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-05-09 17:29:55 +0300
committerArnold D. Robbins <arnold@skeeve.com>2011-05-09 17:29:55 +0300
commita5711befb70980b837b548fb9653a708119fe9bf (patch)
tree4da7275895ed677dd25764e1bb67a989ef44a759 /array.c
parent8b6115459066a2adf536973fe5670c174bcd218c (diff)
downloadegawk-a5711befb70980b837b548fb9653a708119fe9bf.tar.gz
egawk-a5711befb70980b837b548fb9653a708119fe9bf.tar.bz2
egawk-a5711befb70980b837b548fb9653a708119fe9bf.zip
Fixes for uninitialized variables.
Diffstat (limited to 'array.c')
-rw-r--r--array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/array.c b/array.c
index 5cf75d27..84b9a913 100644
--- a/array.c
+++ b/array.c
@@ -666,11 +666,12 @@ local_array:
void
do_delete(NODE *symbol, int nsubs)
{
- unsigned long hash1;
+ unsigned long hash1 = 0;
NODE *subs, *bucket, *last, *r;
int i;
assert(symbol->type == Node_var_array);
+ subs = bucket = last = r = NULL; /* silence the compiler */
/*
* The force_string() call is needed to make sure that
@@ -1446,7 +1447,6 @@ sort_up_value_type(const void *p1, const void *p2)
{
const NODE *t1, *t2;
NODE *n1, *n2;
- int ret;
/* we're passed a pair of index (array subscript) nodes */
t1 = *(const NODE *const *) p1;