aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/net
diff options
context:
space:
mode:
authorAndreas Schwab <[email protected]>2003-04-04 11:33:54 +0000
committerAndreas Schwab <[email protected]>2003-04-04 11:33:54 +0000
commit49914e046a02b669045d3004a24bf24c02a35f0c (patch)
treeee5089234bc9241b03d7b82428848e9ff952ac6d /lisp/net
parentaa8b70aef52ebe70bf1599b358cfa8a86be6f1bb (diff)
(tramp-send-string): Handle empty string.
Diffstat (limited to 'lisp/net')
-rw-r--r--lisp/net/tramp.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 5bfe55575e..8f530d3b81 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -5657,7 +5657,8 @@ the remote host use line-endings as defined in the variable
(mapconcat 'identity
(split-string string "\n")
tramp-rsh-end-of-line))
- (unless (string-equal (substring string -1) tramp-rsh-end-of-line)
+ (unless (or (string= string "")
+ (string-equal (substring string -1) tramp-rsh-end-of-line))
(setq string (concat string tramp-rsh-end-of-line)))
;; send the string
(if (and tramp-chunksize (not (zerop tramp-chunksize)))