replaced exit for noOutput in INVALID_TEXT scenario
This commit is contained in:
parent
045db6c7db
commit
8c787b5387
@ -26,7 +26,7 @@ outputFlags encryptText(char *text, char *keyNew, inputFlags 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");
|
||||||
exit(INVALID_TEXT);
|
return noOutput(INVALID_TEXT);
|
||||||
}
|
}
|
||||||
|
|
||||||
//VARIABLES
|
//VARIABLES
|
||||||
|
Loading…
x
Reference in New Issue
Block a user