projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d06cca5
)
(__objc_xcalloc): Use calloc instead malloc/bzero.
author
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 28 Oct 1994 23:13:10 +0000
(19:13 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 28 Oct 1994 23:13:10 +0000
(19:13 -0400)
From-SVN: r8357
gcc/objc/misc.c
patch
|
blob
|
history
diff --git
a/gcc/objc/misc.c
b/gcc/objc/misc.c
index f5cae02b09d5a090f483e5010c1e62254b5b7ace..7ae9afa8ee4b0be0afd9e8ed50934f6c50300cf9 100644
(file)
--- a/
gcc/objc/misc.c
+++ b/
gcc/objc/misc.c
@@
-1,5
+1,5
@@
/* GNU Objective C Runtime Miscellanious
- Copyright (C) 1993 Free Software Foundation, Inc.
+ Copyright (C) 1993
, 1994
Free Software Foundation, Inc.
Author: Kresten Krab Thorup
@@
-71,9
+71,8
@@
__objc_xrealloc(void* mem, size_t size)
void*
__objc_xcalloc(size_t nelem, size_t size)
{
- void* res = (void*)
malloc(nelem *
size);
+ void* res = (void*)
calloc(nelem,
size);
if(!res)
objc_fatal("Virtual memory exhausted\n");
- bzero (res, nelem * size);
return res;
}