Browse Source

clipcopy: no need to check for free(NULL), set to NULL after free

master
Hiltjo Posthuma 4 years ago
parent
commit
5345db3c9b
  1. 4
      x.c

4
x.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);

Loading…
Cancel
Save