Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 001c7977ef6bf0ce07a1c7e3a8c3ce8e2c704521 1 parent a796321
@tomato42 authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  extents.c
View
3  extents.c
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.