moved checkVersion before checkText in encrypter

This commit is contained in:
Václav Šmejkal 2022-05-31 18:45:24 +02:00
parent 57c49a3d72
commit 169c72594a
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -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");