summaryrefslogtreecommitdiff
path: root/lisp/url/url-util.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-02-13 00:23:23 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2019-02-13 00:23:58 -0800
commit8e0d35802cda844ccb6ddf417672b5a5845f4874 (patch)
treeefc7d91c6e7a5a7352ebdbe83d6289e225bceb23 /lisp/url/url-util.el
parent7ee12d95fb646fed16c953dc00f8e5bffde959cc (diff)
downloademacs-8e0d35802cda844ccb6ddf417672b5a5845f4874.tar.gz
Don’t assume CURRENT_TIME_LIST
* lisp/url/url-util.el (url-lazy-message): Don’t assume (current-time) returns a list. Fix unlikely bug if we’re called 65536 seconds apart.
Diffstat (limited to 'lisp/url/url-util.el')
-rw-r--r--lisp/url/url-util.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/url/url-util.el b/lisp/url/url-util.el
index 1ca257210aa..c2baa69d5a9 100644
--- a/lisp/url/url-util.el
+++ b/lisp/url/url-util.el
@@ -182,7 +182,7 @@ Will not do anything if `url-show-status' is nil."
(null url-show-status)
(active-minibuffer-window)
(= url-lazy-message-time
- (setq url-lazy-message-time (nth 1 (current-time)))))
+ (setq url-lazy-message-time (encode-time nil 'integer))))
nil
(apply 'message args)))