From 0ec51164dbbf1d999bf31ca18990df5980fcaa9b Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Thu, 7 Dec 2017 22:05:30 +0200 Subject: dump.c: Postcond that we actually read something --- src/dump.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/dump.c b/src/dump.c index ef83b34..8af7119 100644 --- a/src/dump.c +++ b/src/dump.c @@ -582,6 +582,8 @@ noop: decl->buf.written += decl->size * read; decl->nmemb = read; } + + assert(decl->nmemb != 0); } break; -- cgit v1.2.3