From 3a645d5167f21b82edf7cd78fe23d72490ae699b Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 4 Feb 2023 18:06:12 +0100 Subject: [PATCH] defined why2_empty_log_file this could cause some segfault if not check for correct return, but yk... This shouldn't ever happen, so yk --- src/logger/lib/utils.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/logger/lib/utils.c b/src/logger/lib/utils.c index 4183ef9..89fd7ab 100644 --- a/src/logger/lib/utils.c +++ b/src/logger/lib/utils.c @@ -116,4 +116,13 @@ why2_decrypted_output why2_decrypt_logger(why2_log_file logger) contentDecrypted, lines }; +} + +why2_log_file why2_empty_log_file() +{ + return (why2_log_file) + { + INVALID_FILE, + NULL + }; } \ No newline at end of file