chiark / gitweb /
normalize eof detection, oops
authorrjk@greenend.org.uk <>
Thu, 4 Oct 2007 11:47:11 +0000 (12:47 +0100)
committerrjk@greenend.org.uk <>
Thu, 4 Oct 2007 11:47:11 +0000 (12:47 +0100)
server/normalize.c

index 8ea6efa4bf4201b21c53aa8e5c792d68599b2be1..f8c7df7f800ff4be791921d94d4ccf9c68e7eb7f 100644 (file)
@@ -141,6 +141,8 @@ int main(int argc, char attribute((unused)) **argv) {
       } else
         n += r;
     }
+    if(!n)
+      break;
     /* Sanity check the header */
     if(header.rate < 100 || header.rate > 1000000)
       fatal(0, "implausible rate %"PRId32"Hz (%#"PRIx32")",