removed unreachable/duplicate code from encrypter
I have no clue why, but there was duplicate code for checking text
This commit is contained in:
parent
f9bdbb1053
commit
78e93f6d19
@ -23,12 +23,6 @@ outputFlags encryptText(char *text, char *keyNew, inputFlags flags)
|
||||
//CHECK FOR INVALID text
|
||||
checkText(text, flags);
|
||||
|
||||
if (strcmp(text, "") == 0)
|
||||
{
|
||||
if (!flags.noOutput) fprintf(stderr, "No text to encrypt!\n");
|
||||
return noOutput(INVALID_TEXT);
|
||||
}
|
||||
|
||||
//VARIABLES
|
||||
char *key = malloc(getKeyLength());
|
||||
char *returningText;
|
||||
|
Loading…
x
Reference in New Issue
Block a user