git.samba.org
/
ira
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s3: Remove an unnecessary NULL check
[ira/wip.git]
/
source3
/
lib
/
conn_tdb.c
diff --git
a/source3/lib/conn_tdb.c
b/source3/lib/conn_tdb.c
index 0770f66828d3f75f782d057d1ad2bf53cca1a7b7..7f9c74636a6ad1a8e6c5a731684a388cced92630 100644
(file)
--- a/
source3/lib/conn_tdb.c
+++ b/
source3/lib/conn_tdb.c
@@
-56,7
+56,7
@@
struct db_record *connections_fetch_entry(TALLOC_CTX *mem_ctx,
ZERO_STRUCT(ckey);
ckey.pid = procid_self();
- ckey.cnum = conn
? conn->cnum : -1
;
+ ckey.cnum = conn
->cnum
;
strlcpy(ckey.name, name, sizeof(ckey.name));
key.dsize = sizeof(ckey);