summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-03 15:45:29 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-03 15:45:29 +0000
commit8bca34de11a934217619146b5b7c8f463e793f3b (patch)
tree3dd5da77c802ae0606a63fa1a1a0611ef9a1d111 /source3
parente63dc32b00fdf3963dc3956622fee507d1d8b6b1 (diff)
downloadsamba-8bca34de11a934217619146b5b7c8f463e793f3b.tar.gz
samba-8bca34de11a934217619146b5b7c8f463e793f3b.tar.bz2
samba-8bca34de11a934217619146b5b7c8f463e793f3b.zip
fixed initialisation bug in rpcclient (stdout is not a constant)
(This used to be commit 1388a6fe8ccd0b2fec8086feebc785b3a5de78d3)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/rpcclient.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c
index 3dd53581aa..394a749bc3 100644
--- a/source3/rpcclient/rpcclient.c
+++ b/source3/rpcclient/rpcclient.c
@@ -50,7 +50,7 @@ static void cmd_quit(struct client_info *info);
static struct cli_state smbcli;
struct cli_state *smb_cli = &smbcli;
-FILE *out_hnd = stdout;
+FILE *out_hnd;
/****************************************************************************
initialise smb client structure
@@ -404,6 +404,8 @@ enum client_action
pstring password; /* local copy only, if one is entered */
+ out_hnd = stdout;
+
rpcclient_init();
#ifdef KANJI