diff --git a/src/lib/flags.c b/src/lib/flags.c index 5993e3f..936da64 100644 --- a/src/lib/flags.c +++ b/src/lib/flags.c @@ -1,5 +1,7 @@ #include +#include + unsigned long getKeyLength() { return keyLength; @@ -12,7 +14,12 @@ inputFlags noFlags() outputFlags noOutput(unsigned char exitCode) { - return (outputFlags) {"", "", 0, 0, exitCode}; + char *empty1 = malloc(1); + char *empty2 = malloc(1); + empty1[0] = '\0'; + empty2[0] = '\0'; + + return (outputFlags) { empty1, empty2, 0, 0, exitCode }; } void setKeyLength(int keyLengthNew)