summaryrefslogtreecommitdiffstats
path: root/source/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
commit66af95716de470600b0db58bdf8a1f0c15dba036 (patch)
treea239dddfb988bdfdc51158680bcaa683d86f5076 /source/client/client.c
parent175d43980e57c25582d8ab859f5730283e82f3b2 (diff)
downloadsamba-66af95716de470600b0db58bdf8a1f0c15dba036.tar.gz
samba-66af95716de470600b0db58bdf8a1f0c15dba036.tar.xz
samba-66af95716de470600b0db58bdf8a1f0c15dba036.zip
- fixed a crash bug for 'print -'
- removed an unused variable
Diffstat (limited to 'source/client/client.c')
-rw-r--r--source/client/client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/client/client.c b/source/client/client.c
index a33774a99b2..a421f36d809 100644
--- a/source/client/client.c
+++ b/source/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);
{