summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--array.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 07d07c8f..ebd16b0d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-04-21 Arnold D. Robbins <arnold@skeeve.com>
+
+ * array.c (asort_actual): Initialize `value' to avoid
+ compiler complaints. Thanks to Michal Jaegermann
+ for the report.
+
2023-04-14 Arnold D. Robbins <arnold@skeeve.com>
* array.c (asort_actual): Handle Node_elem_new. Add braces
diff --git a/array.c b/array.c
index 1ffe7517..124824b5 100644
--- a/array.c
+++ b/array.c
@@ -933,7 +933,7 @@ asort_actual(int nargs, sort_context_t ctxt)
/* value node */
r = *ptr++;
- NODE *value;
+ NODE *value = NULL;
switch (r->type) {
case Node_val: