]> git.eshelyaron.com Git - emacs.git/commitdiff
* minibuf.c (read_minibuf): Avoid C99ism in previous patch.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 7 May 2014 19:28:09 +0000 (12:28 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 7 May 2014 19:28:09 +0000 (12:28 -0700)
Fixes: debbugs:17430
src/ChangeLog
src/minibuf.c

index 027d0fc0d25e02541fcacbf91732d3a1c73b295c..3d58769c927c12f5d70d9ad7b204aa41a8086544 100644 (file)
@@ -1,3 +1,7 @@
+2014-05-07  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * minibuf.c (read_minibuf): Avoid C99ism in previous patch (Bug#17430).
+
 2014-05-07  Jarek Czekalski  <jarekczek@poczta.onet.pl>
 
        Fix initialization of minibuffer history variable (Bug#17430).
index 03d6104f226ae227b7ceeb7f09bf11be7db5397a..cd108d88ecc2b2cc68b44c1418e247199c931568 100644 (file)
@@ -384,6 +384,7 @@ read_minibuf (Lisp_Object map, Lisp_Object initial, Lisp_Object prompt,
   EMACS_INT pos = 0;
   /* String to add to the history.  */
   Lisp_Object histstring;
+  Lisp_Object histval;
 
   Lisp_Object empty_minibuf;
   Lisp_Object dummy, frame;
@@ -536,11 +537,12 @@ read_minibuf (Lisp_Object map, Lisp_Object initial, Lisp_Object prompt,
     Vminibuffer_completing_file_name = Qlambda;
 
   /* If variable is unbound, make it nil.  */
-  Lisp_Object histval = find_symbol_value (Vminibuffer_history_variable);
-  if (EQ (histval, Qunbound)) {
-    Fset (Vminibuffer_history_variable, Qnil);
-    histval = Qnil;
-  }
+  histval = find_symbol_value (Vminibuffer_history_variable);
+  if (EQ (histval, Qunbound))
+    {
+      Fset (Vminibuffer_history_variable, Qnil);
+      histval = Qnil;
+    }
 
   if (inherit_input_method)
     {