]> gitweb.hhaalo.de Git - discspan.git/commitdiff
fix: dvd 5 execute
authorBastian Dehn <hhaalo@arcor.de>
Sat, 14 Sep 2019 17:38:30 +0000 (19:38 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 14 Sep 2019 17:38:30 +0000 (19:38 +0200)
discspan.c

index d21a133187440a533d3a514216846f68b29b84f8..09d5fc0702ba1474d58a0270830493bdb7b50456 100644 (file)
@@ -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':