From a340884a7e4cb51b70fb3040e44b10f3cbd51c62 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 14 Sep 2019 19:38:30 +0200 Subject: [PATCH] fix: dvd 5 execute --- discspan.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/discspan.c b/discspan.c index d21a133..09d5fc0 100644 --- a/discspan.c +++ b/discspan.c @@ -57,7 +57,7 @@ int get_array_length(FILE *in) unsigned long fill_array_from_file(FILE *in, struct file_size *fs, const long long unsigned int split) { - FILE *ignore; + FILE *ignore = NULL; char pfad[255]; struct stat st; int lines = 0; @@ -77,7 +77,6 @@ unsigned long fill_array_from_file(FILE *in, struct file_size *fs, fprintf(ignore, "%s\n", pfad); } } - lines--; if (ignore != NULL) fclose(ignore); @@ -159,7 +158,7 @@ int main(int argc, char *argv[]) } // Lese Parameter ein - int c; + int c = 0; while ((c = getopt(argc, argv, ":59bcf:")) != -1) { switch (c) { case '5': -- 2.39.5