diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-03-01 16:39:45 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-03-01 16:39:45 +0000 |
commit | 5b5c0305447c61a4cc4a0c29a43c2dc2b1befe34 (patch) | |
tree | ebb8583e9e1265588592614c0b4878daded44125 /editors | |
parent | e04d15038c48aceb093d79fc8e69e5d88b670a24 (diff) | |
download | busybox-w32-5b5c0305447c61a4cc4a0c29a43c2dc2b1befe34.tar.gz busybox-w32-5b5c0305447c61a4cc4a0c29a43c2dc2b1befe34.tar.bz2 busybox-w32-5b5c0305447c61a4cc4a0c29a43c2dc2b1befe34.zip |
Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x)
from before "if(x) free(x)".
git-svn-id: svn://busybox.net/trunk/busybox@14396 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'editors')
-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) | |||
556 | } | 556 | } |
557 | 557 | ||
558 | /* If we glued multiple lines together, free the memory. */ | 558 | /* If we glued multiple lines together, free the memory. */ |
559 | if(add_cmd_line) { | 559 | free(add_cmd_line); |
560 | free(add_cmd_line); | 560 | add_cmd_line=NULL; |
561 | add_cmd_line=NULL; | ||
562 | } | ||
563 | } | 561 | } |
564 | 562 | ||
565 | /* Append to a string, reallocating memory as necessary. */ | 563 | /* Append to a string, reallocating memory as necessary. */ |