* net/ange-ftp.el (ange-ftp-quote-string): Return the null string
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 19 Feb 2008 19:23:19 +0000 (19:23 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 19 Feb 2008 19:23:19 +0000 (19:23 +0000)
when the argument is nil.

lisp/ChangeLog
lisp/net/ange-ftp.el

index 69fe9bc..a71fa2a 100644 (file)
@@ -1,3 +1,8 @@
+2008-02-19  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * net/ange-ftp.el (ange-ftp-quote-string): Return the null string
+       when the argument is nil.
+
 2008-02-19  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * vc.el (dir-status): Add a brief description.
index aeb2a8d..ec138ca 100644 (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)