[gnus git] branch no-gnus updated: m0-1-97-g92c8f23 =1= (gnus-read-newsrc-el-file): Protect against broken .newsrc.el files.

Lars Magne Ingebrigtsen <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  92c8f2356f72947613f87e73cbe7c54fb498f2e8 (commit)
      from  d0998a1717bb90af9f88b8230884471405a902d2 (commit)


- Log -----------------------------------------------------------------
commit 92c8f2356f72947613f87e73cbe7c54fb498f2e8
Author: Lars Magne Ingebrigtsen <[email protected]>
Date:   Tue Apr 10 20:22:42 2012 +0200

    (gnus-read-newsrc-el-file): Protect against broken .newsrc.el files.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5f42d88..935dcc6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2012-04-10  Lars Magne Ingebrigtsen  <[email protected]>
+
+	* gnus-start.el (gnus-read-newsrc-el-file): Protect against broken
+	.newsrc.el files.
+
 2012-04-05  Bastien Guerry  <[email protected]>
 
 	* color.el (color-lighten-name): Fix typo.
diff --git a/lisp/gnus-start.el b/lisp/gnus-start.el
index ad2d713..88010fd 100644
--- a/lisp/gnus-start.el
+++ b/lisp/gnus-start.el
@@ -2442,7 +2442,9 @@ If FORCE is non-nil, the .newsrc file is read."
 	(when gnus-newsrc-assoc
 	  (setq gnus-newsrc-alist gnus-newsrc-assoc))))
     (dolist (elem gnus-newsrc-alist)
-      (setcar elem (mm-string-as-unibyte (car elem))))
+      ;; Protect against broken .newsrc.el files.
+      (when (car elem)
+	(setcar elem (mm-string-as-unibyte (car elem)))))
     (gnus-make-hashtable-from-newsrc-alist)
     (when (file-newer-than-file-p file ding-file)
       ;; Old format quick file

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog     |    5 +++++
 lisp/gnus-start.el |    4 +++-
 2 files changed, 8 insertions(+), 1 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, no-gnus has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.