if ( (*dbci->c_get)( dbci, &key, &data, DB_NEXT ) == 0 ) {
ldbm_datum_free( ldbm, data );
}
+ else {
+ key.flags = 0;
#else
int rc;
if ( (rc = (*ldbm->seq)( ldbm, &key, &data, R_FIRST )) == 0 ) {
key = ldbm_datum_dup( ldbm, key );
}
-#endif
else {
- key.flags = 0;
+#endif
key.dptr = NULL;
key.dsize = 0;
}
if ( (*dbcp->c_get)( dbcp, &key, &data, DB_NEXT ) == 0 ) {
ldbm_datum_free( ldbm, data );
}
+ else {
+ key.flags = 0;
#else
int rc;
if ( (rc = (*ldbm->seq)( ldbm, &key, &data, R_NEXT )) == 0 ) {
key = ldbm_datum_dup( ldbm, key );
}
-#endif
else {
- key.flags = 0;
+#endif
key.dptr = NULL;
key.dsize = 0;
}