aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--debug.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 49c557de..3b872bdd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,10 @@
* builtin.c (do_print): Check for Node_typedregex and handle it.
Needed for adding test code.
+ Unrelated. Typo fix.
+
+ * debug.c (initialize_watch_item): Dupnode the right thing.
+
2015-06-22 Arnold D. Robbins <arnold@skeeve.com>
* awkgram.y (snode): Make isarray not scalarize untyped parameters
diff --git a/debug.c b/debug.c
index d0e47f4a..2bb6e53a 100644
--- a/debug.c
+++ b/debug.c
@@ -1794,7 +1794,7 @@ initialize_watch_item(struct list_item *w)
w->flags |= CUR_IS_ARRAY;
w->cur_size = assoc_length(symbol);
} else if (symbol->type == Node_typedregex) {
- w->cur_value = dupnode(r);
+ w->cur_value = dupnode(symbol);
} /* else
can't happen */
}