libbb/obscure.c: code shrink. Suggested by Tito.
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 16 Apr 2014 17:51:34 +0000 (19:51 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 16 Apr 2014 17:51:34 +0000 (19:51 +0200)
function                                             old     new   delta
string_checker                                        97      92      -5

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/obscure.c

index 9ecc1f672cc127f113248b15c5a89395d5b61013..24c4ac917119bd7011b3d1a967e233fb07c484f7 100644 (file)
@@ -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;