mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
r24267: Fix the build farm
I had only tested with "net getlocalsid". posix_locking_init() calls this
with a NULL name...
(This used to be commit 3eee1fe280
)
This commit is contained in:
parent
28210588ed
commit
42c1eca265
@ -696,7 +696,7 @@ TDB_CONTEXT *tdb_open_log(const char *name, int hash_size, int tdb_flags,
|
||||
log_ctx.log_fn = tdb_log;
|
||||
log_ctx.log_private = NULL;
|
||||
|
||||
if (hash_size == 0) {
|
||||
if ((hash_size == 0) && (name != NULL)) {
|
||||
const char *base = strrchr_m(name, '/');
|
||||
if (base != NULL) {
|
||||
base += 1;
|
||||
@ -940,7 +940,7 @@ struct tdb_wrap *tdb_wrap_open(TALLOC_CTX *mem_ctx,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (hash_size == 0) {
|
||||
if ((hash_size == 0) && (name != NULL)) {
|
||||
const char *base = strrchr_m(name, '/');
|
||||
if (base != NULL) {
|
||||
base += 1;
|
||||
|
Loading…
Reference in New Issue
Block a user