summaryrefslogtreecommitdiff
path: root/libgfortran/generated/maxval_r8.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/maxval_r8.c')
-rw-r--r--libgfortran/generated/maxval_r8.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libgfortran/generated/maxval_r8.c b/libgfortran/generated/maxval_r8.c
index bffc2b7681e..21c08e9ef1a 100644
--- a/libgfortran/generated/maxval_r8.c
+++ b/libgfortran/generated/maxval_r8.c
@@ -100,6 +100,7 @@ maxval_r8 (gfc_array_r8 * const restrict retarray,
alloc_size = sizeof (GFC_REAL_8) * 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 @@ maxval_r8 (gfc_array_r8 * const restrict retarray,
return;
}
- else
- retarray->data = internal_malloc_size (alloc_size);
}
else
{