From c3b6e260366eb40b4e4863935db5075095194a7e Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 19 Jun 2022 16:22:28 +0200 Subject: [PATCH] renamed noOutput variables made it prettier --- src/lib/flags.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/flags.c b/src/lib/flags.c index d677a0c..3acedd3 100644 --- a/src/lib/flags.c +++ b/src/lib/flags.c @@ -19,17 +19,17 @@ inputFlags noFlags() outputFlags noOutput(unsigned char exitCode) { - char *empty1 = malloc(1); //TEXT - empty1[0] = '\0'; + char *emptyText = malloc(1); //TEXT + emptyText[0] = '\0'; - char *empty2 = malloc(getKeyLength() + 1); //KEY + char *emptyKey = malloc(getKeyLength() + 1); //KEY 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)