From 13a8eeb810ccfdaefd58c52328dd0ec867e3ae8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Aptel?= Date: Tue, 10 Jan 2012 22:21:03 +0100 Subject: =?UTF-8?q?fix=20segfault=20in=20selection.=20(thx=20Martti=20K?= =?UTF-8?q?=C3=BChne)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'st.c') diff --git a/st.c b/st.c index e193443..c3d0888 100644 --- a/st.c +++ b/st.c @@ -547,7 +547,7 @@ selrequest(XEvent *e) { XA_ATOM, 32, PropModeReplace, (unsigned char *) &string, 1); xev.property = xsre->property; - } else if(xsre->target == sel.xtarget) { + } else if(xsre->target == sel.xtarget && sel.clip != NULL) { XChangeProperty(xsre->display, xsre->requestor, xsre->property, xsre->target, 8, PropModeReplace, (unsigned char *) sel.clip, strlen(sel.clip)); -- cgit v1.2.3