Fix bug #5703.
authorEli Zaretskii <eliz@gnu.org>
Wed, 31 Mar 2010 09:08:40 +0000 (12:08 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 31 Mar 2010 09:08:40 +0000 (12:08 +0300)
 w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
 in this function.

src/ChangeLog
src/w32fns.c

index d6bab5b..e557106 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-31  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
+       in this function.  (Bug#5703)
+
 2010-03-31  Chong Yidong  <cyd@stupidchicken.com>
 
        * nsterm.h: Fix last change.
index 938bd46..795e720 100644 (file)
@@ -5427,6 +5427,10 @@ x_create_tip_frame (dpyinfo, parms, text)
 
   kb = dpyinfo->terminal->kboard;
 
+  /* The calls to x_get_arg remove elements from PARMS, so copy it to
+     avoid destructive changes behind our caller's back.  */
+  parms = Fcopy_alist (parms);
+
   /* Get the name of the frame to use for resource lookup.  */
   name = x_get_arg (dpyinfo, parms, Qname, "name", "Name", RES_TYPE_STRING);
   if (!STRINGP (name)