ITS#7913 cleanup

we already checked for data == NULL, drop unnecessary if
vl32
Howard Chu 10 years ago
parent 8fbbc71506
commit a054a194e8
  1. 3
      libraries/liblmdb/mdb.c

@ -5859,8 +5859,7 @@ fetchm:
MDB_node *leaf = NODEPTR(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top]); MDB_node *leaf = NODEPTR(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top]);
if (!F_ISSET(leaf->mn_flags, F_DUPDATA)) { if (!F_ISSET(leaf->mn_flags, F_DUPDATA)) {
MDB_GET_KEY(leaf, key); MDB_GET_KEY(leaf, key);
if (data) rc = mdb_node_read(mc->mc_txn, leaf, data);
rc = mdb_node_read(mc->mc_txn, leaf, data);
break; break;
} }
} }

Loading…
Cancel
Save