summaryrefslogtreecommitdiffstats
path: root/source3/utils/regedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils/regedit.c')
-rw-r--r--source3/utils/regedit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/regedit.c b/source3/utils/regedit.c
index 21fd257e41..a1118d5633 100644
--- a/source3/utils/regedit.c
+++ b/source3/utils/regedit.c
@@ -197,7 +197,7 @@ static void load_values(struct regedit *regedit)
static void add_reg_key(struct regedit *regedit, struct tree_node *node,
bool subkey)
{
- char *name;
+ const char *name;
const char *msg;
if (!subkey && !node->parent) {
@@ -244,7 +244,7 @@ static void add_reg_key(struct regedit *regedit, struct tree_node *node,
dialog_notice(regedit, DIA_ALERT, "New Key",
"Failed to create key.");
}
- talloc_free(name);
+ talloc_free(discard_const(name));
}
}