diff --git a/Start_Windows/input.c b/Start_Windows/input.c index 7bbe95a..ebf3f79 100644 --- a/Start_Windows/input.c +++ b/Start_Windows/input.c @@ -9,9 +9,9 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) { //kein fopen und close nötig, weil dies schon in der main passiert und mit *file übergeben wird// - -if (!file) + +if (file == NULL) { perror("Error invalid pointer to file"); return -1;