git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cda77d
)
s3-dbwrap: Avoid an "else" by an early return
author
Volker Lendecke
<vl@samba.org>
Thu, 8 Dec 2011 12:59:33 +0000
(13:59 +0100)
committer
Volker Lendecke
<vl@samba.org>
Thu, 8 Dec 2011 14:03:43 +0000
(15:03 +0100)
source3/lib/dbwrap/dbwrap.c
patch
|
blob
|
history
diff --git
a/source3/lib/dbwrap/dbwrap.c
b/source3/lib/dbwrap/dbwrap.c
index 44344b967525cd0e070ba96388fe0b486d976851..587fc8a4819a8103ca4e7c9bb204fc7c9457f8b6 100644
(file)
--- a/
source3/lib/dbwrap/dbwrap.c
+++ b/
source3/lib/dbwrap/dbwrap.c
@@
-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)