summaryrefslogtreecommitdiff
path: root/source3/client/client.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-07-13 03:51:28 +0000
committerAndrew Tridgell <tridge@samba.org>2002-07-13 03:51:28 +0000
commitebfff1a475bbebe94cc7e61f52c5de1dde43dd3c (patch)
tree1d5113672aaa6b5d577afde7263be37d4d09b341 /source3/client/client.c
parente40abc248f6456a7dba3a4c4c4274c0e7b77020f (diff)
downloadsamba-ebfff1a475bbebe94cc7e61f52c5de1dde43dd3c.tar.gz
samba-ebfff1a475bbebe94cc7e61f52c5de1dde43dd3c.tar.bz2
samba-ebfff1a475bbebe94cc7e61f52c5de1dde43dd3c.zip
- fixed a crash bug for 'print -'
- removed an unused variable (This used to be commit 66af95716de470600b0db58bdf8a1f0c15dba036)
Diffstat (limited to 'source3/client/client.c')
-rw-r--r--source3/client/client.c5
1 files changed, 4 insertions, 1 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);
{