aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2001-12-21 23:57:20 +0000
committerRichard M. Stallman2001-12-21 23:57:20 +0000
commitb52e05e242d61adfd6085eb127774b122c1a67a3 (patch)
tree09ea14c441c09a2b2b5a88b5069d40eec77605df
parent2633072a0d997d42901a661a3fdede8f32c50da1 (diff)
downloademacs-b52e05e242d61adfd6085eb127774b122c1a67a3.tar.gz
emacs-b52e05e242d61adfd6085eb127774b122c1a67a3.zip
(ange-ftp-file-modtime): Use save-match-data.
-rw-r--r--lisp/net/ange-ftp.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el
index 9faa3a241b1..79f18afd2a8 100644
--- a/lisp/net/ange-ftp.el
+++ b/lisp/net/ange-ftp.el
@@ -3454,7 +3454,7 @@ Value is (0 0) if the modification time cannot be determined."
3454 ;; Bob@rattlesnake.com reports that is returns something different 3454 ;; Bob@rattlesnake.com reports that is returns something different
3455 ;; for at least one FTP server. So, let's use the response only 3455 ;; for at least one FTP server. So, let's use the response only
3456 ;; if it matches the Internet draft. 3456 ;; if it matches the Internet draft.
3457 (when (string-match "^213 [0-9]\\{14\\}$" line) 3457 (when (save-match-data (string-match "^213 [0-9]\\{14\\}$" line))
3458 (setq modtime 3458 (setq modtime
3459 (encode-time 3459 (encode-time
3460 (string-to-number (substring line 16 18)) 3460 (string-to-number (substring line 16 18))