moved checkVersion before checkText in encrypter
This commit is contained in:
parent
57c49a3d72
commit
169c72594a
@ -17,12 +17,12 @@ outputFlags encryptText(char *text, char *keyNew, inputFlags flags)
|
|||||||
struct timeval finishTime;
|
struct timeval finishTime;
|
||||||
gettimeofday(&startTime, NULL);
|
gettimeofday(&startTime, NULL);
|
||||||
|
|
||||||
//CHECK FOR INVALID text
|
|
||||||
checkText(text, flags);
|
|
||||||
|
|
||||||
//CHECK FOR ACTIVE VERSION
|
//CHECK FOR ACTIVE VERSION
|
||||||
if (!flags.skipCheck) checkVersion(flags);
|
if (!flags.skipCheck) checkVersion(flags);
|
||||||
|
|
||||||
|
//CHECK FOR INVALID text
|
||||||
|
checkText(text, flags);
|
||||||
|
|
||||||
if (strcmp(text, "") == 0)
|
if (strcmp(text, "") == 0)
|
||||||
{
|
{
|
||||||
if (!flags.noOutput) fprintf(stderr, "No text to encrypt!\n");
|
if (!flags.noOutput) fprintf(stderr, "No text to encrypt!\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user