aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-07-14 05:50:23 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-07-14 05:50:23 +0300
commit887f912491cdeaa1c1a8b4d13d48c46909f391b7 (patch)
treee4d0f3a950ea419e4b2606aed7900ad8de1131b4
parentcc9f35fdbcab4bd58049b5ca6fd22ef7a945f7b1 (diff)
downloadarching-kaos-tools-887f912491cdeaa1c1a8b4d13d48c46909f391b7.tar.gz
arching-kaos-tools-887f912491cdeaa1c1a8b4d13d48c46909f391b7.tar.bz2
arching-kaos-tools-887f912491cdeaa1c1a8b4d13d48c46909f391b7.zip
forgot to close file descriptor
-rw-r--r--src/tests/test_akfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/test_akfs.c b/src/tests/test_akfs.c
index c1eddbc..5e2c6ad 100644
--- a/src/tests/test_akfs.c
+++ b/src/tests/test_akfs.c
@@ -86,7 +86,7 @@ void more_than_length()
void string_is_empty()
{
printf("%s\t", __func__);
- char queried_string[128];
+ char queried_string[128] = "";
// printf("Hash given:\t%s\n", queried_string);
//printf("Is a hash: %s\n", ak_fs_verify_input_is_hash(queried_string) ? "true": "false");
sha512sum resulted_hash = ak_fs_sha512sum_string_to_struct(queried_string);
@@ -175,6 +175,7 @@ void hash_save_to_file()
{
printf("\tNO PASS :(\n");
}
+ fclose(fd);
free(resulted_string);
}