dbwrap: determine basename once instead of three times
authorDavid Disseldorp <ddiss@samba.org>
Tue, 10 Jul 2018 11:35:30 +0000 (13:35 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 16 Jul 2018 19:11:30 +0000 (21:11 +0200)
commit8cb96438bf1540ec76e759135863202bdef6ee35
tree8b8b3841e548dff70760a76229cdd193d4931147
parent26fd7096b1f99a2754f634669d5432109023bfa5
dbwrap: determine basename once instead of three times

Currently determined twice in the clear-if-first codepath and once in
the ctdb code path. Do it once at the top of the function.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Mon Jul 16 21:11:30 CEST 2018 on sn-devel-144
source3/lib/dbwrap/dbwrap_open.c