This website works better with JavaScript.
Home
Explore
Help
Sign In
gmarx
/
dwm-macbookair
mirror of
https://github.com/gmarxcc/dwm-macbookair
Watch
1
Star
1
Fork
0
Code
Issues
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
using malloc() instead of calloc() and sticking to static initializer and struct assignment, not using *c = (Client){}; right now to avoid some ugly gcc warning, possibly a gcc bug since we are using -std=c99
main
Anselm R Garbe
16 years ago
parent
83abfc05eb
commit
53cac17692
1 changed files
with
4 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-2
dwm.c
+ 4
- 2
dwm.c
View File
@ -846,12 +846,14 @@ killclient(const Arg *arg) {
void
manage
(
Window
w
,
XWindowAttributes
*
wa
)
{
static
Client
cz
;
Client
*
c
,
*
t
=
NULL
;
Window
trans
=
None
;
XWindowChanges
wc
;
if
(
!
(
c
=
calloc
(
1
,
sizeof
(
Client
)
)
)
)
die
(
"
fatal: could not calloc() %u bytes
\n
"
,
sizeof
(
Client
)
)
;
if
(
!
(
c
=
malloc
(
sizeof
(
Client
)
)
)
)
die
(
"
fatal: could not malloc() %u bytes
\n
"
,
sizeof
(
Client
)
)
;
*
c
=
cz
;
c
-
>
win
=
w
;
/* geometry */
Write
Preview
Loading…
Cancel
Save