index
:
st
master
My fork of the suckless terminal
Aryadev Chavali <aryadev@aryadevchavali.com>
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rw-r--r--
x.c
3
1 files changed, 3 insertions, 0 deletions
diff --git a/x.c b/x.c
index 12bc86b..c343ba2 100644
--- a/
x.c
+++ b/
x.c
@@ -618,6 +618,9 @@ selrequest(XEvent *e)
void
setsel(char *str, Time t)
{
+ if (!str)
+ return;
+
free(xsel.primary);
xsel.primary = str;