renamed noOutput variables

made it prettier
This commit is contained in:
Václav Šmejkal 2022-06-19 16:22:28 +02:00
parent 0a0803145c
commit c3b6e26036
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -19,17 +19,17 @@ inputFlags noFlags()
outputFlags noOutput(unsigned char exitCode) outputFlags noOutput(unsigned char exitCode)
{ {
char *empty1 = malloc(1); //TEXT char *emptyText = malloc(1); //TEXT
empty1[0] = '\0'; emptyText[0] = '\0';
char *empty2 = malloc(getKeyLength() + 1); //KEY char *emptyKey = malloc(getKeyLength() + 1); //KEY
for (int i = 0; i < getKeyLength(); i++) for (int i = 0; i < getKeyLength(); i++)
{ {
empty2[i] = 'x'; emptyKey[i] = 'x';
} }
empty2[getKeyLength()] = '\0'; emptyKey[getKeyLength()] = '\0';
return (outputFlags) { empty1, empty2, 0, 0, exitCode }; return (outputFlags) { emptyText, emptyKey, 0, 0, exitCode };
} }
void setEncryptionSeparator(char encryptionSeparatorNew) void setEncryptionSeparator(char encryptionSeparatorNew)