1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

* net/ange-ftp.el (ange-ftp-quote-string): Return the null string

when the argument is nil.
This commit is contained in:
Michael Albinus 2008-02-19 19:23:19 +00:00
parent 00ca5ce2ea
commit c200c78dc5
2 changed files with 8 additions and 1 deletions

View file

@ -1527,7 +1527,9 @@ then kill the related ftp process."
;; and that by doubling it. But experiment says UNIX-style kind of
;; quoting is correct when talking to ftp on GNU/Linux systems, and
;; W32-style kind of quoting on, yes, W32 systems.
(when (stringp string) (shell-quote-argument string)))
(if (stringp string)
(shell-quote-argument string)
""))
(defun ange-ftp-barf-if-not-directory (directory)
(or (file-directory-p directory)