emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rfc-mode 01b37d63e4: string-to-number returns zero on erro


From: ELPA Syncer
Subject: [nongnu] elpa/rfc-mode 01b37d63e4: string-to-number returns zero on error, not nil
Date: Thu, 2 Mar 2023 10:02:10 -0500 (EST)

branch: elpa/rfc-mode
commit 01b37d63e498eab3ac6ad2588777438cfd4d7f60
Author: Nicolas Martyanoff <nicolas@n16f.net>
Commit: Nicolas Martyanoff <nicolas@n16f.net>

    string-to-number returns zero on error, not nil
    
    Thanks to Matus Goljer for finding the problem with Elsa.
---
 rfc-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rfc-mode.el b/rfc-mode.el
index 90e0a7887b..21c4746221 100644
--- a/rfc-mode.el
+++ b/rfc-mode.el
@@ -445,7 +445,7 @@ ENTRY is a RFC index entry in the browser."
   (let* ((number-string (match-string 1 string))
          (number (string-to-number number-string))
          (title (match-string 2 string)))
-    (unless number
+    (when (zerop member)
       (error "Invalid index entry number: %S" number-string))
     (let ((entry (list :number number :title title)))
       (when (string-match "(Status: \\([^)]+\\))" string)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]