From 26f9bcee59e71a74b4d2dd5b76b9ef661cd5060c Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Sat, 19 Sep 2009 16:02:36 +0000 Subject: [PATCH] * varobj.c (varobj_update): Initialize children_changed. --- gdb/ChangeLog | 5 +++++ gdb/varobj.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3ac8fa27bc4..02f45d8ee2e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-09-19 Matt Rice (tiny change) + + Checked in by Joel Brobecker + * varobj.c (varobj_update): Initialize children_changed. + 2009-09-19 Vladimir Prus * mi/mi-cmd-stack.c (list_args_or_locals): Workaround diff --git a/gdb/varobj.c b/gdb/varobj.c index 72356358777..8f22156e260 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -1758,7 +1758,7 @@ VEC(varobj_update_result) *varobj_update (struct varobj **varp, int explicit) if (v->pretty_printer) { VEC (varobj_p) *changed = 0, *new = 0, *unchanged = 0; - int i, children_changed; + int i, children_changed = 0; if (v->frozen) continue; -- 2.30.2