changeset 89339:1eac05a60b66

(Fapropos_internal): Don't gcpro apropos_predicate but set it to nil before returning.
author Dave Love <fx@gnu.org>
date Tue, 07 Jan 2003 17:53:49 +0000
parents 99010f501117
children 1cc27231b263
files src/keymap.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/keymap.c	Tue Jan 07 17:52:51 2003 +0000
+++ b/src/keymap.c	Tue Jan 07 17:53:49 2003 +0000
@@ -3293,13 +3293,12 @@
   struct gcpro gcpro1;
   Lisp_Object result;
   CHECK_STRING (regexp);
-  apropos_predicate = predicate;
-  GCPRO1 (apropos_predicate);
+  apropos_predicate = predicate; /* predicate protected by the call */
   apropos_accumulate = Qnil;	/* staticpro'd */
   map_obarray (Vobarray, apropos_accum, regexp);
   result = Fsort (apropos_accumulate, Qstring_lessp);
-  UNGCPRO;
   apropos_accumulate = Qnil;	/* Allow the result to be GCed.  */
+  apropos_predicate = Qnil;
   return result;
 }