From 49914e046a02b669045d3004a24bf24c02a35f0c Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Fri, 4 Apr 2003 11:33:54 +0000 Subject: [PATCH] (tramp-send-string): Handle empty string. --- lisp/ChangeLog | 4 ++++ lisp/net/tramp.el | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4aac41b648b..52a184f2f68 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2003-04-04 Andreas Schwab + + * net/tramp.el (tramp-send-string): Handle empty string. + 2003-04-03 Richard M. Stallman * emacs-lisp/easymenu.el (easy-menu-define): diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 5bfe55575e8..8f530d3b811 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))) -- 2.39.2