aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/libgfortran/m4/shape.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/libgfortran/m4/shape.m4')
-rw-r--r--gcc-4.9/libgfortran/m4/shape.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc-4.9/libgfortran/m4/shape.m4 b/gcc-4.9/libgfortran/m4/shape.m4
index 85dd233d1..9d02c6c40 100644
--- a/gcc-4.9/libgfortran/m4/shape.m4
+++ b/gcc-4.9/libgfortran/m4/shape.m4
@@ -50,7 +50,7 @@ shape_'rtype_kind` ('rtype` * const restrict ret,
{
GFC_DIMENSION_SET(ret->dim[0], 0, rank - 1, 1);
ret->offset = 0;
- ret->base_addr = xmalloc (sizeof ('rtype_name`) * rank);
+ ret->base_addr = xmallocarray (rank, sizeof ('rtype_name`));
}
stride = GFC_DESCRIPTOR_STRIDE(ret,0);