projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix PR63758 by using the _NSGetEnviron() API on Darwin
[deliverable/binutils-gdb.git]
/
libiberty
/
spaces.c
diff --git
a/libiberty/spaces.c
b/libiberty/spaces.c
index 9592a03a4cd56fd37d522bf8eea6bbc480caf829..69d7a2d3f834778242b24840f1c3c9fdbb351a26 100644
(file)
--- a/
libiberty/spaces.c
+++ b/
libiberty/spaces.c
@@
-53,11
+53,8
@@
spaces (int count)
if (count > maxsize)
{
- if (buf)
- {
- free (buf);
- }
- buf = malloc (count + 1);
+ free (buf);
+ buf = (char *) malloc (count + 1);
if (buf == (char *) 0)
return 0;
for (t = buf + count ; t != buf ; )
This page took
0.026062 seconds
and
4
git commands to generate.