]> git.eshelyaron.com Git - emacs.git/commitdiff
Make url-cookie-write-file be more permissive
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 15 Apr 2018 19:50:38 +0000 (21:50 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 15 Apr 2018 19:50:38 +0000 (21:50 +0200)
* lisp/url/url-cookie.el (url-cookie-write-file): If
`url-cookie-file' isn't set (due to url.el not being used yet),
don't error out in this function (bug#23183).

lisp/url/url-cookie.el

index 76c18b756f7f5a5a852670a9d8c60eb2a45a0a5f..29487e83c6fe0688ca95a8b3284bd85f4f573b3d 100644 (file)
@@ -139,7 +139,8 @@ i.e. 1970-1-1) are loaded as expiring one year from now instead."
     (set var new)))
 
 (defun url-cookie-write-file (&optional fname)
-  (when url-cookies-changed-since-last-save
+  (when (and url-cookies-changed-since-last-save
+             url-cookie-file)
     (or fname (setq fname (expand-file-name url-cookie-file)))
     (if (condition-case nil
             (progn