From ebfff1a475bbebe94cc7e61f52c5de1dde43dd3c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 13 Jul 2002 03:51:28 +0000 Subject: - fixed a crash bug for 'print -' - removed an unused variable (This used to be commit 66af95716de470600b0db58bdf8a1f0c15dba036) --- source3/client/client.c | 5 ++++- source3/client/clitar.c | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/source3/client/client.c b/source3/client/client.c index a33774a99b..a421f36d80 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -1123,7 +1123,10 @@ static int do_put(char *rname,char *lname) } - x_fclose(f); + if (f != x_stdin) { + x_fclose(f); + } + SAFE_FREE(buf); { diff --git a/source3/client/clitar.c b/source3/client/clitar.c index 1d9d09066b..43b0ef44bc 100644 --- a/source3/client/clitar.c +++ b/source3/client/clitar.c @@ -66,8 +66,6 @@ typedef struct } stack; -static stack dir_stack = {NULL, 0}; /* Want an empty stack */ - #define SEPARATORS " \t\n\r" extern struct cli_state *cli; -- cgit