From 7f71d1e8bdc28b6d9dc2307f0f2486a208ebd25f Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 29 Mar 2008 12:23:26 +0100 Subject: Fix a segfault (an uninitialized variable) (This used to be commit 75eb30884a83266fd7331d8f1e3905a0245bb3d8) --- source3/utils/net_registry.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/utils') diff --git a/source3/utils/net_registry.c b/source3/utils/net_registry.c index dfa35557b6..3d24500774 100644 --- a/source3/utils/net_registry.c +++ b/source3/utils/net_registry.c @@ -207,7 +207,7 @@ static int net_registry_enumerate(int argc, const char **argv) struct registry_key *key = NULL; TALLOC_CTX *ctx = talloc_stackframe(); char *subkey_name; - NTTIME *modtime; + NTTIME modtime; uint32_t count; char *valname = NULL; struct registry_value *valvalue = NULL; @@ -227,11 +227,11 @@ static int net_registry_enumerate(int argc, const char **argv) } for (count = 0; - werr = reg_enumkey(ctx, key, count, &subkey_name, modtime), + werr = reg_enumkey(ctx, key, count, &subkey_name, &modtime), W_ERROR_IS_OK(werr); count++) { - print_registry_key(subkey_name, modtime); + print_registry_key(subkey_name, &modtime); } if (!W_ERROR_EQUAL(WERR_NO_MORE_ITEMS, werr)) { goto done; -- cgit