summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/registry/tools/regshell.c6
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;