diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-04-08 02:58:36 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:00:50 -0500 |
commit | 5f64fcf473f5cdb4b560fa672097c7cc144a67bb (patch) | |
tree | a875d07b2dab4afa0a0c6918be3c67a2818529dd /source4/lib/registry | |
parent | bc9b94a3e5e82c4b101e2972a6dc1382f2880148 (diff) | |
download | samba-5f64fcf473f5cdb4b560fa672097c7cc144a67bb.tar.gz samba-5f64fcf473f5cdb4b560fa672097c7cc144a67bb.tar.bz2 samba-5f64fcf473f5cdb4b560fa672097c7cc144a67bb.zip |
r14981: fixed a use of a wild ptr in regshell
(This used to be commit 868deaf89f34124a2a7ba2798fad83ffdabe316d)
Diffstat (limited to 'source4/lib/registry')
-rw-r--r-- | source4/lib/registry/tools/regshell.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/registry/tools/regshell.c b/source4/lib/registry/tools/regshell.c index 19f544bccf..b71c15cb67 100644 --- a/source4/lib/registry/tools/regshell.c +++ b/source4/lib/registry/tools/regshell.c @@ -93,9 +93,9 @@ static struct registry_key *cmd_set(TALLOC_CTX *mem_ctx, struct registry_context if (argc < 4) { fprintf(stderr, "Usage: set value-name type value\n"); } else { - struct registry_value *val; - if (reg_string_to_val(mem_ctx, argv[2], argv[3], &val->data_type, &val->data)) { - WERROR error = reg_val_set(cur, argv[1], val->data_type, val->data); + struct registry_value val; + if (reg_string_to_val(mem_ctx, argv[2], argv[3], &val.data_type, &val.data)) { + WERROR error = reg_val_set(cur, argv[1], val.data_type, val.data); if (!W_ERROR_IS_OK(error)) { fprintf(stderr, "Error setting value: %s\n", win_errstr(error)); return NULL; |