Fix minor problems found by static checking.
[bpt/emacs.git] / src / doc.c
index 02a5b4b..c219355 100644 (file)
--- a/src/doc.c
+++ b/src/doc.c
@@ -848,9 +848,10 @@ Otherwise, return a new string, without any text properties.  */)
          struct buffer *oldbuf;
          ptrdiff_t start_idx;
          /* This is for computing the SHADOWS arg for describe_map_tree.  */
-         Lisp_Object active_maps = Fcurrent_active_maps (Qnil, Qnil);
+         Lisp_Object active_maps;
          Lisp_Object earlier_maps;
 
+         active_maps = Fcurrent_active_maps (Qnil, Qnil);
          changed = 1;
          strp += 2;            /* skip \{ or \< */
          start = strp;