summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-11-11 01:33:57 +0000
committerJeremy Allison <jra@samba.org>1998-11-11 01:33:57 +0000
commitb94520e424bc6e348dcb380ff8285583bbb18a34 (patch)
treead32ee3c1d933724b223053eafd21e4c9041c326 /source3/rpc_client
parent7668dc66190c0e04ab438b6d36e926a1aef6fc61 (diff)
downloadsamba-b94520e424bc6e348dcb380ff8285583bbb18a34.tar.gz
samba-b94520e424bc6e348dcb380ff8285583bbb18a34.tar.bz2
samba-b94520e424bc6e348dcb380ff8285583bbb18a34.zip
Makefile.in: Added target for makeyodldocs - not used by default.
rpc_client/cli_reg.c: The perils of cut-n-paste coding include using variables before they are initialised :-). script/makeyodldocs.sh: Remove the intermediate files. Jeremy. (This used to be commit 88031bca5c528157ef2fe1d976a245b186ff8959)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_reg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/rpc_client/cli_reg.c b/source3/rpc_client/cli_reg.c
index 9ded3c4e67..240a1fbb67 100644
--- a/source3/rpc_client/cli_reg.c
+++ b/source3/rpc_client/cli_reg.c
@@ -42,7 +42,7 @@ BOOL do_reg_connect(struct cli_state *cli, char *full_keyname,
fstring key_name;
char *srch;
BOOL res1;
- BOOL res;
+ BOOL res = False;
BOOL hklm = False;
BOOL hku = False;
@@ -70,16 +70,16 @@ BOOL do_reg_connect(struct cli_state *cli, char *full_keyname,
if (hklm)
{
- res = res ? do_reg_open_hklm(cli,
+ res = do_reg_open_hklm(cli,
0x84E0, 0x02000000,
- reg_hnd) : False;
+ reg_hnd);
}
if (hku)
{
- res = res ? do_reg_open_hku(cli,
+ res = do_reg_open_hku(cli,
0x84E0, 0x02000000,
- reg_hnd) : False;
+ reg_hnd);
}
/* open an entry */