From e7c43b66d74ee9902a6732122788a7a16bcfbf18 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 1 Mar 2006 16:39:45 +0000 Subject: Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x) from before "if(x) free(x)". --- editors/sed.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'editors/sed.c') 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. */ -- cgit v1.2.3