aboutsummaryrefslogtreecommitdiffstats
path: root/src/exec-cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exec-cmd.c')
-rw-r--r--src/exec-cmd.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/exec-cmd.c b/src/exec-cmd.c
index 5ad312c..1e76980 100644
--- a/src/exec-cmd.c
+++ b/src/exec-cmd.c
@@ -107,7 +107,7 @@ int cmd_insert(int argc, char *argv[])
}
}
- char *f_pass, *s_pass;
+ char *f_pass = NULL, *s_pass = NULL;
if(!flag_echo) {
visible_enter(0);
@@ -157,10 +157,8 @@ int cmd_insert(int argc, char *argv[])
out:
visible_enter(1);
- if(f_pass)
- free(f_pass);
- if(s_pass)
- free(s_pass);
+ free(f_pass);
+ free(s_pass);
return retval;
}