all repos — st @ 5345db3c9be1a22ca19202035b881b951c2f0f9e

st (suckless terminal) config

clipcopy: no need to check for free(NULL), set to NULL after free
Hiltjo Posthuma hiltjo@codemadness.org
commit

5345db3c9be1a22ca19202035b881b951c2f0f9e

parent

7648697f711d5ae336af142e9cd464d943341b24

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M x.cx.c

@@ -245,8 +245,8 @@ clipcopy(const Arg *dummy)

{ Atom clipboard; - if (xsel.clipboard != NULL) - free(xsel.clipboard); + free(xsel.clipboard); + xsel.clipboard = NULL; if (xsel.primary != NULL) { xsel.clipboard = xstrdup(xsel.primary);