summaryrefslogtreecommitdiff
path: root/libiberty/sort.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/sort.c')
-rw-r--r--libiberty/sort.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/sort.c b/libiberty/sort.c
index a4fffefa349..3738dd733e5 100644
--- a/libiberty/sort.c
+++ b/libiberty/sort.c
@@ -155,8 +155,8 @@ int main (int argc, char **argv)
else
k = 10;
- pointers = xmalloc (k * sizeof (void *));
- work = xmalloc (k * sizeof (void *));
+ pointers = XNEWVEC (void*, k);
+ work = XNEWVEC (void*, k);
for (i = 0; i < k; ++i)
{