summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2001-12-21 23:57:20 +0000
committerRichard M. Stallman <rms@gnu.org>2001-12-21 23:57:20 +0000
commitb52e05e242d61adfd6085eb127774b122c1a67a3 (patch)
tree09ea14c441c09a2b2b5a88b5069d40eec77605df /lisp
parent2633072a0d997d42901a661a3fdede8f32c50da1 (diff)
downloademacs-b52e05e242d61adfd6085eb127774b122c1a67a3.tar.gz
(ange-ftp-file-modtime): Use save-match-data.
Diffstat (limited to 'lisp')
-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."
;; Bob@rattlesnake.com reports that is returns something different
;; for at least one FTP server. So, let's use the response only
;; if it matches the Internet draft.
- (when (string-match "^213 [0-9]\\{14\\}$" line)
+ (when (save-match-data (string-match "^213 [0-9]\\{14\\}$" line))
(setq modtime
(encode-time
(string-to-number (substring line 16 18))