[git commit] libbb/obscure.c: code shrink. Suggested by Tito.

Denys Vlasenko vda.linux at googlemail.com
Wed Apr 16 17:51:34 UTC 2014


commit: http://git.busybox.net/busybox/commit/?id=eb9f485b07b1823efbfddc773c899bd35dee62a6
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

function                                             old     new   delta
string_checker                                        97      92      -5

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 libbb/obscure.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libbb/obscure.c b/libbb/obscure.c
index 9ecc1f6..24c4ac9 100644
--- a/libbb/obscure.c
+++ b/libbb/obscure.c
@@ -76,7 +76,7 @@ static int string_checker(const char *p1, const char *p2)
 	ret |= string_checker_helper(p, p2);
 
 	/* clean up */
-	memset(p, 0, size);
+	nuke_str(p);
 	free(p);
 
 	return ret;


More information about the busybox-cvs mailing list