memzap

replay memory writes
git clone git://git.2f30.org/memzap
Log | Files | Refs | README | LICENSE

commit c9da72cae72f1957d24d985aaf27a3cbbf61548c
parent 26da6b9bf2681ff171cfa661506f58996d677115
Author: sin <sin@2f30.org>
Date:   Sun,  3 Mar 2013 21:39:51 +0000

mdiff: Warn on empty rdiffs

Diffstat:
Mmdiff.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/mdiff.c b/mdiff.c @@ -146,8 +146,10 @@ mdiff_append_rdiff(int fd, struct mem_region_diff *rdiff) return -EINVAL; /* If this is an empty memory region diff, just bail out */ - if (!rdiff->nmrdiffs) + if (!rdiff->nmrdiffs) { + warnx("rdiff with no memory diffs, skipping"); return 0; + } for (i = 0; i < rdiff->nmrdiffs; i++) { md = &rdiff->mrdiffs[i];