From 169c72594a18bb98dad77059678c78841c89c7cb Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Tue, 31 May 2022 18:45:24 +0200 Subject: [PATCH] moved checkVersion before checkText in encrypter --- src/lib/encrypter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/encrypter.c b/src/lib/encrypter.c index 117e047..92ffdae 100644 --- a/src/lib/encrypter.c +++ b/src/lib/encrypter.c @@ -17,12 +17,12 @@ outputFlags encryptText(char *text, char *keyNew, inputFlags flags) struct timeval finishTime; gettimeofday(&startTime, NULL); - //CHECK FOR INVALID text - checkText(text, flags); - //CHECK FOR ACTIVE VERSION if (!flags.skipCheck) checkVersion(flags); + //CHECK FOR INVALID text + checkText(text, flags); + if (strcmp(text, "") == 0) { if (!flags.noOutput) fprintf(stderr, "No text to encrypt!\n");