From 8bca34de11a934217619146b5b7c8f463e793f3b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 3 Oct 1998 15:45:29 +0000 Subject: fixed initialisation bug in rpcclient (stdout is not a constant) (This used to be commit 1388a6fe8ccd0b2fec8086feebc785b3a5de78d3) --- source3/rpcclient/rpcclient.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/rpcclient') 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 -- cgit