(nnrss-read-group-data): Initialize nnrss-group-hashtb
authorJesper Harder <harder@ifa.au.dk>
Tue, 10 Feb 2004 22:58:52 +0000 (22:58 +0000)
committerJesper Harder <harder@ifa.au.dk>
Tue, 10 Feb 2004 22:58:52 +0000 (22:58 +0000)
if necessary.

lisp/ChangeLog
lisp/nnrss.el

index c5a557e..1660f69 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-10  Jesper Harder  <harder@ifa.au.dk>
+
+       * nnrss.el (nnrss-read-group-data): Initialize nnrss-group-hashtb
+       if necessary.
+
 2004-02-09  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * spam-report.el (spam-report-unplug-agent)
index 3368bb1..6735eda 100644 (file)
@@ -320,7 +320,9 @@ ARTICLE is the article number of the current headline.")
 
 (defun nnrss-read-group-data (group server)
   (setq nnrss-group-data nil)
-  (clrhash nnrss-group-hashtb)
+  (if (hash-table-p nnrss-group-hashtb)
+      (clrhash nnrss-group-hashtb)
+    (setq nnrss-group-hashtb (make-hash-table :test 'equal)))
   (let ((pair (assoc group nnrss-server-data)))
     (setq nnrss-group-max (or (cadr pair) 0))
     (setq nnrss-group-min (+ nnrss-group-max 1)))