diff options
author | Aurélien Aptel <aurelien.aptel@gmail.com> | 2012-01-10 22:21:03 +0100 |
---|---|---|
committer | Aurélien Aptel <aurelien.aptel@gmail.com> | 2012-01-10 22:21:03 +0100 |
commit | 281174445ba2b6e1160b2b7b4490eebb0714eb37 (patch) | |
tree | 8aa456c2e6062420123a2cf7c1cc05640b5e9b4b /st.c | |
parent | 197c46686424cc7bdc06da5c980e38ff654f98fa (diff) | |
download | st-281174445ba2b6e1160b2b7b4490eebb0714eb37.tar.gz st-281174445ba2b6e1160b2b7b4490eebb0714eb37.tar.bz2 |
fix segfault in selection. (thx Martti Kühne)
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |