Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
5c593fae
Commit
5c593fae
authored
Feb 03, 2016
by
Hisham
Browse files
Be stricter!
parent
d311e85b
Changes
1
Show whitespace changes
Inline
Side-by-side
XAlloc.c
View file @
5c593fae
...
...
@@ -27,7 +27,7 @@ void* xMalloc(size_t size) {
void
*
xCalloc
(
size_t
nmemb
,
size_t
size
)
{
void
*
data
=
calloc
(
nmemb
,
size
);
if
(
!
data
&&
nmemb
>
0
&&
size
>
0
)
{
if
(
!
data
)
{
curs_set
(
1
);
endwin
();
write
(
2
,
oomMessage
,
sizeof
oomMessage
-
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment