Fix some compiler warnings.
authorTim Potter <tpot@samba.org>
Mon, 5 May 2003 02:47:41 +0000 (02:47 +0000)
committerTim Potter <tpot@samba.org>
Mon, 5 May 2003 02:47:41 +0000 (02:47 +0000)
(This used to be commit 52d5ff7bdafabb421e76b6b19d95be22b380ddb4)

source3/utils/editreg.c

index ad4417921c8355bb81b9e843470443163ee1c574..31fd3080bbc2c3e28fdc29dfa1cf67b5cf5bbaf7 100644 (file)
@@ -1007,9 +1007,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;
 }
 
@@ -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);