diff options
author | Volker Lendecke <vl@samba.org> | 2008-03-29 12:23:26 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-03-29 13:28:37 +0100 |
commit | 7f71d1e8bdc28b6d9dc2307f0f2486a208ebd25f (patch) | |
tree | 12d2dcf416e6e417d49e2b42960bd48de09a9066 /source3/utils | |
parent | 2487f0c88c0ecf04921e5484ed1fc983762a86c9 (diff) | |
download | samba-7f71d1e8bdc28b6d9dc2307f0f2486a208ebd25f.tar.gz samba-7f71d1e8bdc28b6d9dc2307f0f2486a208ebd25f.tar.bz2 samba-7f71d1e8bdc28b6d9dc2307f0f2486a208ebd25f.zip |
Fix a segfault (an uninitialized variable)
(This used to be commit 75eb30884a83266fd7331d8f1e3905a0245bb3d8)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_registry.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |