Commit 7723a3e5 authored by Ken Raeburn's avatar Ken Raeburn

(Fminibuffer_complete_and_exit): Avoid dangerous side effects in NILP argument.

parent a3911e8c
......@@ -2116,16 +2116,17 @@ a repetition of this command will exit. */)
()
{
register int i;
Lisp_Object val;
Lisp_Object val, tem;
/* Allow user to specify null string */
if (XINT (Fminibuffer_prompt_end ()) == ZV)
goto exit;
val = Fminibuffer_contents ();
if (!NILP (Ftest_completion (val,
Vminibuffer_completion_table,
Vminibuffer_completion_predicate)))
tem = Ftest_completion (val,
Vminibuffer_completion_table,
Vminibuffer_completion_predicate);
if (!NILP (tem))
{
if (completion_ignore_case)
{ /* Fixup case of the field, if necessary. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment