]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - afh.c
Fix -Wdeclaration-after-statement warnings.
[paraslash.git] / afh.c
diff --git a/afh.c b/afh.c
index 863224220d82360cc1d8fe5b0d262385cbf62a29..c82d17fd19acc5c1484d883b4021a59d4718c599 100644 (file)
--- a/afh.c
+++ b/afh.c
@@ -112,6 +112,8 @@ static int cat_file(void *audio_file_data, struct afh_info *afhi)
                                        return ret;
                        }
                }
+               if (!size)
+                       continue;
                PARA_INFO_LOG("writing chunk %lu\n", i);
                ret = write_all(STDOUT_FILENO, buf, &size);
                if (ret < 0)