From: Andre Noll Date: Fri, 28 Nov 2008 20:02:26 +0000 (+0100) Subject: afh.c: Skip emtpy chunks. X-Git-Tag: v0.3.3~17 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=66242aba3fe1663229f7e7c80b25b96b9930ca1b afh.c: Skip emtpy chunks. --- diff --git a/afh.c b/afh.c index 86322422..c82d17fd 100644 --- 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)