diff options
-rw-r--r-- | x.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -618,6 +618,9 @@ selrequest(XEvent *e) void setsel(char *str, Time t) { + if (!str) + return; + free(xsel.primary); xsel.primary = str; |
index : st | ||
st fork - delete keys and terminus font |
aboutsummaryrefslogtreecommitdiffstats |
-rw-r--r-- | x.c | 3 |
@@ -618,6 +618,9 @@ selrequest(XEvent *e) void setsel(char *str, Time t) { + if (!str) + return; + free(xsel.primary); xsel.primary = str; |