Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
b30d92df
Commit
b30d92df
authored
Mar 18, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed other instances of the xrealloc(0) bug.
parent
f65e415d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
util.c
programs/winetest/util.c
+1
-1
utils.c
tools/winegcc/utils.c
+2
-2
No files found.
programs/winetest/util.c
View file @
b30d92df
...
...
@@ -36,7 +36,7 @@ void *xrealloc (void *op, size_t len)
{
void
*
p
=
realloc
(
op
,
len
);
if
(
!
p
)
report
(
R_FATAL
,
"Out of memory."
);
if
(
len
&&
!
p
)
report
(
R_FATAL
,
"Out of memory."
);
return
p
;
}
...
...
tools/winegcc/utils.c
View file @
b30d92df
...
...
@@ -60,8 +60,8 @@ void* xmalloc(size_t size)
void
*
xrealloc
(
void
*
p
,
size_t
size
)
{
void
*
p2
;
if
(
(
p2
=
realloc
(
p
,
size
))
==
NULL
)
void
*
p2
=
realloc
(
p
,
size
)
;
if
(
size
&&
!
p2
)
error
(
"Can not realloc %d bytes."
,
size
);
return
p2
;
...
...
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