[git commit] libbb/yescrypt: code shrink
Denys Vlasenko
vda.linux at googlemail.com
Mon Jul 7 16:03:10 UTC 2025
commit: https://git.busybox.net/busybox/commit/?id=e3484095f9fd48d771df4e49db8b6384b5219c21
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
function old new delta
yescrypt_r 1063 1048 -15
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
libbb/yescrypt/alg-yescrypt-common.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libbb/yescrypt/alg-yescrypt-common.c b/libbb/yescrypt/alg-yescrypt-common.c
index 262fe82fb..99e8b1277 100644
--- a/libbb/yescrypt/alg-yescrypt-common.c
+++ b/libbb/yescrypt/alg-yescrypt-common.c
@@ -126,8 +126,8 @@ static const uint8_t *decode64(
*dstlen = dstpos;
dbg_dec64("dec64: OK, dst[%d]", (int)dstpos);
return src;
-fail:
- *dstlen = 0;
+ fail:
+ /* *dstlen = 0; - not needed, caller detects error by seeing NULL */
return NULL;
}
#else
@@ -177,7 +177,7 @@ static const uint8_t *decode64(
dbg_dec64("dec64: OK, dst[%d]", (int)dstpos);
return src;
}
-fail:
+ fail:
/* *dstlen = 0; - not needed, caller detects error by seeing NULL */
return NULL;
}
More information about the busybox-cvs
mailing list