OSDN Git Service

* cfgexpand.c (convert_debug_memory_address): Allow any valid
[pf3gnuchains/gcc-fork.git] / libgfortran / generated / minval_i2.c
index 3de9f02..9cffe84 100644 (file)
@@ -100,6 +100,7 @@ minval_i2 (gfc_array_i2 * const restrict retarray,
       alloc_size = sizeof (GFC_INTEGER_2) * 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 @@ minval_i2 (gfc_array_i2 * const restrict retarray,
          return;
 
        }
-      else
-       retarray->data = internal_malloc_size (alloc_size);
     }
   else
     {