diff options
author | C. Davis <cd.rattan@gmail.com> | 2012-07-20 03:53:42 -0700 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-04-29 13:05:52 +0200 |
commit | 6d82438c63b4655f86985035ffd13b9507f6012b (patch) | |
tree | 822404a74cfd2c4ed624de0a3d0b88a79d0b3f0f /source3/utils/regedit.c | |
parent | e75057a906b6a7e275622ee1a97675d70ab61912 (diff) | |
download | samba-6d82438c63b4655f86985035ffd13b9507f6012b.tar.gz samba-6d82438c63b4655f86985035ffd13b9507f6012b.tar.bz2 samba-6d82438c63b4655f86985035ffd13b9507f6012b.zip |
regedit: Print value summary, fix heap corruption and path printing.
Added code to summarize value data. Also fixed a few bugs,
including some heap corruption found with valgrind.
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/utils/regedit.c')
-rw-r--r-- | source3/utils/regedit.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/utils/regedit.c b/source3/utils/regedit.c index 182fe3438a..f66999a614 100644 --- a/source3/utils/regedit.c +++ b/source3/utils/regedit.c @@ -132,14 +132,16 @@ static void display_test_window(TALLOC_CTX *mem_ctx, tree_node_load_children(node); tree_node_print_path(path_label, node->child_head); tree_view_update(view, node->child_head); + value_list_load(vl, node->child_head->key); } break; case KEY_LEFT: node = item_userptr(current_item(view->menu)); if (node && node->parent) { - tree_node_print_path(path_label, node->child_head); - tree_view_update(view, - tree_node_first(node->parent)); + tree_node_print_path(path_label, node->parent); + node = tree_node_first(node->parent); + tree_view_update(view, node); + value_list_load(vl, node->key); } break; } |