tdb: Slightly simplify transaction_write
commita7fdd4f7c2e64eedf12cb46c3435edbec772a4ab
authorVolker Lendecke <vl@samba.org>
Tue, 19 Feb 2013 11:23:36 +0000 (19 12:23 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 19 Feb 2013 16:30:13 +0000 (19 17:30 +0100)
tree45cf0e9498d70627d9c5315d9f552f1e3e21ffc9
parentfcb345f5d6be9659a0f8a5afe62a937010a33d5c
tdb: Slightly simplify transaction_write

realloc(NULL, ...) is equivalent to malloc. We are already using this
realloc property for tdb->lockrecs. It should not make any difference
in speed, it just makes for a little simpler code.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Feb 19 17:30:13 CET 2013 on sn-devel-104
lib/tdb/common/transaction.c