replaced exit for noOutput in INVALID_TEXT scenario

This commit is contained in:
Václav Šmejkal 2022-06-12 16:22:29 +02:00
parent 045db6c7db
commit 8c787b5387
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -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