From 99e1ca932d4a2b3b208fe936b65df85082387b5c Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 12 Jun 2022 16:36:41 +0200 Subject: [PATCH] added missing SUCCESS exit to checkKey & checkText --- src/lib/misc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/misc.c b/src/lib/misc.c index 2f651e8..cdbb6e8 100644 --- a/src/lib/misc.c +++ b/src/lib/misc.c @@ -294,6 +294,8 @@ int checkKey(char *key, inputFlags flags) if (!flags.noOutput) fprintf(stderr, "Key must be at least %lu characters long!\n", getKeyLength()); return INVALID_KEY; } + + return SUCCESS; } int checkText(char *text, inputFlags flags) @@ -303,6 +305,8 @@ int checkText(char *text, inputFlags flags) if (!flags.noOutput) fprintf(stderr, "No text to encrypt!\n"); return INVALID_TEXT; } + + return SUCCESS; } unsigned long countIntLength(int number)