projects
/
external
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* regex.c (bzero) [!_LIBC]: Define without coma expression. (regerror): Cast the...
[external/binutils.git]
/
libiberty
/
spaces.c
diff --git
a/libiberty/spaces.c
b/libiberty/spaces.c
index
9592a03
..
69d7a2d
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 ; )