diff options
author | Pádraig Brady <P@draigBrady.com> | 2012-11-30 15:08:31 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2012-12-04 12:30:05 +0000 |
commit | 2bf0c52d5b82e5781adb0ac1f0d77ad6cf916cd2 (patch) | |
tree | 10cb4d88f6e79835e2eabef5b49c844c4df7bd6f /src | |
parent | 7d034663e4671be6fe8b8eacf88fb5edc42ea0c0 (diff) | |
download | coreutils-2bf0c52d5b82e5781adb0ac1f0d77ad6cf916cd2.tar.xz |
maint: remove a redundant odd sized alloc from factor.c
* src/factor.c (mp_factor_init): Init the pointers with NULL,
which xrealloc (or realloc) handles fine.
Diffstat (limited to 'src')
-rw-r--r-- | src/factor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/factor.c b/src/factor.c index 6d1d17a4b..90af1c497 100644 --- 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; } |