commit: b3ab3d34022c4edf3b3832177b1302fd9c70d192
parent 0c3e6b2acefd7208f769727c07d71aa2f1d9f013
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 24 Jul 2025 19:55:41 +0200
cmd/base64: remove `… || ferror` right after fin = fopen
Allows to make sure fopen won't leak
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/base64.c b/cmd/base64.c
@@ -319,7 +319,7 @@ base64_main(int argc, char *argv[])
else
{
FILE *fin = fopen(argv[argi], "r");
- if(fin == NULL || ferror(fin) != 0)
+ if(fin == NULL)
{
fprintf(stderr,
"%s: error: Failed opening file '%s': %s\n",