]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - vss.c
vss: Add an assertion for vsst->header_buf.
[paraslash.git] / vss.c
diff --git a/vss.c b/vss.c
index 24dfc6bb51af4edf67c645c0d3ccbda2ad8f1868..32e36a997fadadca81df24e12a776b974423420e 100644 (file)
--- a/vss.c
+++ b/vss.c
@@ -362,6 +362,7 @@ static void vss_get_chunk(int chunk_num, struct vss_task *vsst,
         * rather than the unmodified header (chunk zero).
         */
        if (chunk_num == 0 && vsst->header_len > 0) {
+               assert(vsst->header_buf);
                *buf = vsst->header_buf; /* stripped header */
                *sz = vsst->header_len;
                return;