1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

s3-dbwrap: Avoid an "else" by an early return

This commit is contained in:
Volker Lendecke 2011-12-08 13:59:33 +01:00
parent 5cda77d599
commit d9e5368fcc

View File

@ -231,11 +231,11 @@ int dbwrap_parse_record(struct db_context *db, TDB_DATA key,
parser = dbwrap_null_parser;
}
if (db->parse_record) {
return db->parse_record(db, key, parser, private_data);
} else {
return dbwrap_fallback_parse_record(db, key, parser, private_data);
if (db->parse_record == NULL) {
return dbwrap_fallback_parse_record(db, key, parser,
private_data);
}
return db->parse_record(db, key, parser, private_data);
}
int dbwrap_wipe(struct db_context *db)