This website works better with JavaScript.
Home
Explore
Help
Sign In
tovi
/
st
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
clipcopy: no need to check for free(NULL), set to NULL after free
master
Hiltjo Posthuma
7 years ago
parent
7648697f71
commit
5345db3c9b
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
x.c
+ 2
- 2
x.c
View File
@ -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
)
;
Write
Preview
Loading…
Cancel
Save