From 9be2fd9b4f96bd00d222ae8ce13f8bb39802f930 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Tue, 24 Apr 2012 10:58:26 +0800 Subject: [PATCH] * src/xselect.c (x_convert_selection): Initialize a pointer. Fixes: debbugs:11315 --- src/ChangeLog | 4 ++++ src/xselect.c | 1 + 2 files changed, 5 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 906d17535c..8c80a24b58 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-04-24 Chong Yidong + + * xselect.c (x_convert_selection): Initialize a pointer (Bug#11315). + 2012-04-23 Eli Zaretskii * xdisp.c (pos_visible_p): If the window start position is beyond diff --git a/src/xselect.c b/src/xselect.c index 173cf78bda..15ce8d487f 100644 --- a/src/xselect.c +++ b/src/xselect.c @@ -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; -- 2.20.1