projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d03466
)
maint: remove a redundant odd sized alloc from factor.c
author
Pádraig Brady
<P@draigBrady.com>
Fri, 30 Nov 2012 15:08:31 +0000
(15:08 +0000)
committer
Pádraig Brady
<P@draigBrady.com>
Tue, 4 Dec 2012 12:30:05 +0000
(12:30 +0000)
* src/factor.c (mp_factor_init): Init the pointers with NULL,
which xrealloc (or realloc) handles fine.
src/factor.c
patch
|
blob
|
history
diff --git
a/src/factor.c
b/src/factor.c
index
6d1d17a
..
90af1c4
100644
(file)
--- a/
src/factor.c
+++ b/
src/factor.c
@@
-573,8
+573,8
@@
static void mp_factor (mpz_t, struct mp_factors *);
static void
mp_factor_init (struct mp_factors *factors)
{
- factors->p =
xmalloc (1)
;
- factors->e =
xmalloc (1)
;
+ factors->p =
NULL
;
+ factors->e =
NULL
;
factors->nfactors = 0;
}