summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-05-05 02:47:41 +0000
committerTim Potter <tpot@samba.org>2003-05-05 02:47:41 +0000
commitc4c55a00db6f2793e96940ef9fe3e85fe47bed3f (patch)
tree309a77a8dd7e673b0ef4ea99212cde7b833b3623 /source3/utils
parent73a3105b574c00f80a0f10c3b9fa4d3bba3bd7d7 (diff)
downloadsamba-c4c55a00db6f2793e96940ef9fe3e85fe47bed3f.tar.gz
samba-c4c55a00db6f2793e96940ef9fe3e85fe47bed3f.tar.bz2
samba-c4c55a00db6f2793e96940ef9fe3e85fe47bed3f.zip
Fix some compiler warnings.
(This used to be commit 52d5ff7bdafabb421e76b6b19d95be22b380ddb4)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/editreg.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/utils/editreg.c b/source3/utils/editreg.c
index ad4417921c..31fd3080bb 100644
--- a/source3/utils/editreg.c
+++ b/source3/utils/editreg.c
@@ -1008,9 +1008,6 @@ REG_KEY *nt_add_reg_key_list(KEY_LIST *list, char * name, REG_KEY *parent, int c
}
return NULL;
- error:
- if (lname) free(lname);
- return NULL;
}
REG_KEY *nt_add_reg_key(REG_KEY *key, char *name, int create)
@@ -2483,7 +2480,7 @@ CMD *regedit4_get_cmd(int fd)
cmd->cmd = CMD_NONE;
cmd->key = NULL;
cmd->val_spec_list = cmd->val_spec_last = NULL;
- while (cl = get_cmd_line(fd)) {
+ while ((cl = get_cmd_line(fd))) {
strip_comment(cl); /* remove anything beyond a comment char */
trim_trailing_spaces(cl);