aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/libgfortran/generated/product_i1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.6/libgfortran/generated/product_i1.c')
-rw-r--r--gcc-4.6/libgfortran/generated/product_i1.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc-4.6/libgfortran/generated/product_i1.c b/gcc-4.6/libgfortran/generated/product_i1.c
index e087a06..2e04287 100644
--- a/gcc-4.6/libgfortran/generated/product_i1.c
+++ b/gcc-4.6/libgfortran/generated/product_i1.c
@@ -100,6 +100,7 @@ product_i1 (gfc_array_i1 * const restrict retarray,
alloc_size = sizeof (GFC_INTEGER_1) * GFC_DESCRIPTOR_STRIDE(retarray,rank-1)
* extent[rank-1];
+ retarray->data = internal_malloc_size (alloc_size);
if (alloc_size == 0)
{
/* Make sure we have a zero-sized array. */
@@ -107,8 +108,6 @@ product_i1 (gfc_array_i1 * const restrict retarray,
return;
}
- else
- retarray->data = internal_malloc_size (alloc_size);
}
else
{