From: Bastian Dehn Date: Sat, 14 Sep 2019 17:38:30 +0000 (+0200) Subject: fix: dvd 5 execute X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=a340884a7e4cb51b70fb3040e44b10f3cbd51c62;p=discspan.git fix: dvd 5 execute --- 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':