]> gitweb.hhaalo.de Git - discspan.git/commitdiff
change: write ignore file only needed
authorBastian Dehn <hhaalo@arcor.de>
Sat, 31 Jul 2021 17:24:52 +0000 (19:24 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 31 Jul 2021 17:24:52 +0000 (19:24 +0200)
discspan.c

index 33bf56db3b60f0e81d2b50c5122496d8d18d015f..2252a39f53dbae190dc1538a0903ee6176ef882a 100644 (file)
@@ -103,7 +103,8 @@ int main(int argc, char *argv[])
 
        medium_t disc;
        disc = ignore(&srcdata);
-       write_output_file("ignore", disc);
+       if (disc.length > 0)
+               write_output_file("ignore", disc);
        free(disc.filearray);
 
        char outname[strlen(output) + 3];