Skip to content

Commit

Permalink
btree/bt_seq.c: Avoid to return NULL where enumeration constant is ex…
Browse files Browse the repository at this point in the history
…pected.
  • Loading branch information
pfalcon committed Jun 14, 2016
1 parent 1d28f37 commit 66164eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion btree/bt_seq.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ __bt_first(t, key, erval, exactp)
* page) and return it.
*/
if ((ep = __bt_search(t, key, exactp)) == NULL)
return (NULL);
return (RET_SPECIAL);
if (*exactp) {
if (F_ISSET(t, B_NODUPS)) {
*erval = *ep;
Expand Down

0 comments on commit 66164eb

Please sign in to comment.