# HG changeset patch # User Andreas Schwab # Date 1049456013 0 # Node ID 7d56636afc9c3f79ddd10ba812d9d460e46b88a4 # Parent 35165c59c478894d09d630ba5a7c9026f075c547 (tramp-send-string): Handle empty string. diff -r 35165c59c478 -r 7d56636afc9c lisp/net/tramp.el --- 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)))