Permalink
Browse files

call with e->length == len is valid but causes assertion fail

  • Loading branch information...
1 parent a796321 commit 001c7977ef6bf0ce07a1c7e3a8c3ce8e2c704521 @tomato42 committed Aug 2, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 extents.c
View
@@ -117,6 +117,9 @@ truncate_extents(struct extents *e, size_t len)
assert(e);
assert(e->extents);
+ if (e->length == len)
+ return;
+
assert(e->length > len);
struct extent **ext;

0 comments on commit 001c797

Please sign in to comment.