diff options
Diffstat (limited to 'editors/sed.c')
-rw-r--r-- | editors/sed.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/editors/sed.c b/editors/sed.c index b08eae4dc..f58f442e8 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -556,10 +556,8 @@ static void add_cmd(char *cmdstr) } /* If we glued multiple lines together, free the memory. */ - if(add_cmd_line) { - free(add_cmd_line); - add_cmd_line=NULL; - } + free(add_cmd_line); + add_cmd_line=NULL; } /* Append to a string, reallocating memory as necessary. */ |