emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master cf36693: Don't use XCAR in possibly-nil situations


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master cf36693: Don't use XCAR in possibly-nil situations
Date: Sun, 24 Jun 2018 20:34:51 -0400 (EDT)

branch: master
commit cf36693bd4eb25c7d0b90affa87c4739daacf355
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Don't use XCAR in possibly-nil situations
    
    * src/gnutls.c (Fgnutls_peer_status): certs theoretically may be
    nil, so don't use XCAR.
---
 src/gnutls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gnutls.c b/src/gnutls.c
index 9295692..a8034d0 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -1277,7 +1277,7 @@ The return value is a property list with top-level keys 
:warnings and
 
       /* Return the host certificate in its own element for
         compatibility reasons. */
-      result = nconc2 (result, list2 (intern (":certificate"), XCAR (certs)));
+      result = nconc2 (result, list2 (intern (":certificate"), Fcar (certs)));
     }
 
   state = XPROCESS (proc)->gnutls_state;



reply via email to

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