]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/xselect.c (x_convert_selection): Initialize a pointer.
authorChong Yidong <cyd@gnu.org>
Tue, 24 Apr 2012 02:58:26 +0000 (10:58 +0800)
committerChong Yidong <cyd@gnu.org>
Tue, 24 Apr 2012 02:58:26 +0000 (10:58 +0800)
Fixes: debbugs:11315
src/ChangeLog
src/xselect.c

index 906d17535c6ef8aef115e169fa6f326bf6c6d6e5..8c80a24b5806d5f66e8811eecc05e15b338f8e8f 100644 (file)
@@ -1,3 +1,7 @@
+2012-04-24  Chong Yidong  <cyd@gnu.org>
+
+       * xselect.c (x_convert_selection): Initialize a pointer (Bug#11315).
+
 2012-04-23  Eli Zaretskii  <eliz@gnu.org>
 
        * xdisp.c (pos_visible_p): If the window start position is beyond
index 173cf78bdaac9d54b0a59aab68243fb0ed03e6d8..15ce8d487fa04c798f2af9c5e64de10d9c93d4d5 100644 (file)
@@ -931,6 +931,7 @@ x_convert_selection (struct input_event *event, Lisp_Object selection_symbol,
 
   /* Otherwise, record the converted selection to binary.  */
   cs = xmalloc (sizeof (struct selection_data));
+  cs->data = NULL;
   cs->nofree = 1;
   cs->property = property;
   cs->wait_object = NULL;