mirror of
git://git.suckless.org/st
synced 2025-04-28 11:20:59 +01:00
clipcopy: no need to check for free(NULL), set to NULL after free
This commit is contained in:
parent
7648697f71
commit
5345db3c9b
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…
x
Reference in New Issue
Block a user