Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nettle
nettle
Commits
4dc68a7d
Commit
4dc68a7d
authored
Feb 17, 2004
by
Niels Möller
Browse files
(xalloc): xalloc(0) should work also on
systems where malloc(0) returns NULL. Rev: src/nettle/testsuite/testutils.c:1.25
parent
ba2cda3a
Changes
1
Show whitespace changes
Inline
Side-by-side
testsuite/testutils.c
View file @
4dc68a7d
...
...
@@ -38,7 +38,7 @@ void *
xalloc
(
size_t
size
)
{
void
*
p
=
malloc
(
size
);
if
(
!
p
)
if
(
size
&&
!
p
)
{
fprintf
(
stderr
,
"Virtual memory exhausted.
\n
"
);
abort
();
...
...
Write
Preview
Supports
Markdown
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