summaryrefslogtreecommitdiffstats
path: root/source3/utils/regedit.c
diff options
context:
space:
mode:
authorChris Davis <cd.rattan@gmail.com>2014-08-04 21:48:04 -0700
committerMichael Adam <obnox@samba.org>2014-10-01 14:32:08 +0200
commit7e7c649376bd17c7ac9908bbd0ffc235e7cd18f7 (patch)
treed1ac7e044c5dc9a580607be6e6941fbd48fa36e8 /source3/utils/regedit.c
parent0fbce1457dadbd5ae1307989f2699196161a37df (diff)
downloadsamba-7e7c649376bd17c7ac9908bbd0ffc235e7cd18f7.tar.gz
samba-7e7c649376bd17c7ac9908bbd0ffc235e7cd18f7.tar.xz
samba-7e7c649376bd17c7ac9908bbd0ffc235e7cd18f7.zip
regedit: silence some warnings
Signed-off-by: Chris Davis <cd.rattan@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
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));
}
}