summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-17 12:21:32 +0100
committerMichael Adam <obnox@samba.org>2008-03-17 13:12:47 +0100
commit6a2a76bc9294b7bc8085ff5284a05a40adfa8f30 (patch)
tree1d79eab1d6df521ff9191d4fd730881d5bf846b5 /source3
parent88ee949777fefbceb7a1fd6fb599f45b90a4018b (diff)
downloadsamba-6a2a76bc9294b7bc8085ff5284a05a40adfa8f30.tar.gz
samba-6a2a76bc9294b7bc8085ff5284a05a40adfa8f30.tar.bz2
samba-6a2a76bc9294b7bc8085ff5284a05a40adfa8f30.zip
registry: untangle assignment and if-clause in init_registry_data().
Michael (This used to be commit 64664d25cf84e5e0f4a4876b2c38c127b310dbc5)
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_backend_db.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 1378d00029..08f74eb583 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -196,7 +196,8 @@ static bool init_registry_data(void)
for (i=0; builtin_registry_values[i].path != NULL; i++) {
- if (!(values = TALLOC_ZERO_P(frame, REGVAL_CTR))) {
+ values = TALLOC_ZERO_P(frame, REGVAL_CTR);
+ if (values == NULL) {
goto fail;
}