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
Make xrealloc and xstrdup style consistent.
master
noname
11 years ago
committed by
Roberto E. Vargas Caballero
parent
df1810dd8f
commit
fa19f241a3
1 changed files
with
2 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-4
st.c
+ 2
- 4
st.c
View File
@ -549,12 +549,10 @@ xrealloc(void *p, size_t len) {
char
*
xstrdup
(
char
*
s
)
{
char
*
p
=
strdup
(
s
)
;
if
(
!
p
)
if
(
(
s
=
strdup
(
s
)
)
=
=
NULL
)
die
(
"
Out of memory
\n
"
)
;
return
p
;
return
s
;
}
size_t
Write
Preview
Loading…
Cancel
Save