Mercurial > emacs
changeset 50432:7d56636afc9c
(tramp-send-string): Handle empty string.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Fri, 04 Apr 2003 11:33:33 +0000 |
parents | 35165c59c478 |
children | 5178bf655928 |
files | lisp/net/tramp.el |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/net/tramp.el Fri Apr 04 10:47:26 2003 +0000 +++ b/lisp/net/tramp.el Fri Apr 04 11:33:33 2003 +0000 @@ -5657,7 +5657,8 @@ (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)))