summaryrefslogtreecommitdiff
path: root/libgfortran/generated/maxloc1_8_i8.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/maxloc1_8_i8.c')
-rw-r--r--libgfortran/generated/maxloc1_8_i8.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libgfortran/generated/maxloc1_8_i8.c b/libgfortran/generated/maxloc1_8_i8.c
index c5312c0a12f..f9c455cb030 100644
--- a/libgfortran/generated/maxloc1_8_i8.c
+++ b/libgfortran/generated/maxloc1_8_i8.c
@@ -101,6 +101,7 @@ maxloc1_8_i8 (gfc_array_i8 * const restrict retarray,
alloc_size = sizeof (GFC_INTEGER_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. */
@@ -108,8 +109,6 @@ maxloc1_8_i8 (gfc_array_i8 * const restrict retarray,
return;
}
- else
- retarray->data = internal_malloc_size (alloc_size);
}
else
{