summaryrefslogtreecommitdiff
path: root/libgfortran/io/transfer.c
diff options
context:
space:
mode:
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2006-12-15 19:54:52 +0000
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2006-12-15 19:54:52 +0000
commit80bf6ccfaf347d3041b6a2c03a8e63135c8925b5 (patch)
treeaeec6e7e6d2c519fd6d436841ec729ee7588bddb /libgfortran/io/transfer.c
parentd26210a33c536d7f309bc8083ce8f986cb5d4868 (diff)
downloadgcc-80bf6ccfaf347d3041b6a2c03a8e63135c8925b5.tar.gz
2006-12-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/30145 * io/transfer.c (transfer_array): Check for negative extent. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119942 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/io/transfer.c')
-rw-r--r--libgfortran/io/transfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/io/transfer.c b/libgfortran/io/transfer.c
index 163557d49b3..0139380e821 100644
--- a/libgfortran/io/transfer.c
+++ b/libgfortran/io/transfer.c
@@ -1478,7 +1478,7 @@ transfer_array (st_parameter_dt *dtp, gfc_array_char *desc, int kind,
/* If the extent of even one dimension is zero, then the entire
array section contains zero elements, so we return. */
- if (extent[n] == 0)
+ if (extent[n] <= 0)
return;
}