diff options
-rw-r--r-- | src/segtree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/segtree.c b/src/segtree.c index 4ee09884..5685618b 100644 --- a/src/segtree.c +++ b/src/segtree.c @@ -270,6 +270,7 @@ static int ei_insert(struct list_head *msgs, struct seg_tree *tree, return 0; err: + errno = EEXIST; return expr_binary_error(msgs, lei->expr, new->expr, "conflicting intervals specified"); } @@ -371,6 +372,7 @@ static int set_overlap(struct list_head *msgs, const struct set *set, expr_error(msgs, new_intervals[i]->expr, "interval overlaps with an existing one"); + errno = EEXIST; ret = -1; goto out; } |