Author: jelmer Date: 2006-05-22 16:32:41 +0000 (Mon, 22 May 2006) New Revision: 15810
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15810 Log: Fix uninitialized variable error, caught by the IBM checker. Modified: branches/SAMBA_4_0/source/lib/registry/tools/regtree.c Changeset: Modified: branches/SAMBA_4_0/source/lib/registry/tools/regtree.c =================================================================== --- branches/SAMBA_4_0/source/lib/registry/tools/regtree.c 2006-05-22 16:26:42 UTC (rev 15809) +++ branches/SAMBA_4_0/source/lib/registry/tools/regtree.c 2006-05-22 16:32:41 UTC (rev 15810) @@ -122,7 +122,7 @@ error = WERR_OK; - if (!h) { + if (root != NULL) { print_tree(0, root, fullpath, no_values); } else { for(i = 0; reg_predefined_keys[i].handle; i++) { @@ -131,6 +131,7 @@ fprintf(stderr, "Skipping %s\n", reg_predefined_keys[i].name); continue; } + SMB_ASSERT(root); print_tree(0, root, fullpath, no_values); } }