summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/events.c')
-rw-r--r--src/events.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/events.c b/src/events.c
index 37bfc01..8c8950d 100644
--- a/src/events.c
+++ b/src/events.c
@@ -788,8 +788,7 @@ selection_request (XSelectionRequestEvent *rq)
static void
selection_clear (void)
{
- if (selection.text)
- free (selection.text);
+ free (selection.text);
selection.text = NULL;
selection.len = 0;
}