summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_reg_nt.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-05-13 17:21:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:02 -0500
commit77aa11f4dc78450640802cd944a2ee541f12080f (patch)
tree578b9a59bced3ca9b0e8a8f8917f91077f20ee60 /source3/rpc_server/srv_reg_nt.c
parent58959676012bd1636cadc72415aa18c728287fc1 (diff)
downloadsamba-77aa11f4dc78450640802cd944a2ee541f12080f.tar.gz
samba-77aa11f4dc78450640802cd944a2ee541f12080f.tar.bz2
samba-77aa11f4dc78450640802cd944a2ee541f12080f.zip
r15570: Fix Coverity bug # 286. I really wonder why gcc -O1 did not catch this one.
Volker (This used to be commit c6bf2c8922e612278349fe53ca11f6be6c819009)
Diffstat (limited to 'source3/rpc_server/srv_reg_nt.c')
-rw-r--r--source3/rpc_server/srv_reg_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_reg_nt.c b/source3/rpc_server/srv_reg_nt.c
index 5ac6738b99..8fd0e55c54 100644
--- a/source3/rpc_server/srv_reg_nt.c
+++ b/source3/rpc_server/srv_reg_nt.c
@@ -1199,7 +1199,7 @@ WERROR _reg_set_value(pipes_struct *p, REG_Q_SET_VALUE *q_u, REG_R_SET_VALUE *r
WERROR _reg_delete_key(pipes_struct *p, REG_Q_DELETE_KEY *q_u, REG_R_DELETE_KEY *r_u)
{
REGISTRY_KEY *parent = find_regkey_index_by_hnd(p, &q_u->handle);
- REGISTRY_KEY *newparentinfo;
+ REGISTRY_KEY *newparentinfo = NULL;
POLICY_HND newparent_handle;
REGSUBKEY_CTR *subkeys;
BOOL write_result;