Skip to content

Commit cf1abe2

Browse files
awvwgkmilancurcic
andauthored
Use automatic LHS allocation
Co-authored-by: Milan Curcic <[email protected]>
1 parent 1b8ca1b commit cf1abe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stdlib_io.fypp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ contains
357357
character(len=bufsize) :: buffer, msg
358358
integer :: chunk, stat
359359

360-
allocate(character(len=0) :: line)
360+
line = ""
361361
do
362362
read(unit, '(a)', advance='no', iostat=stat, iomsg=msg, size=chunk) buffer
363363
if (stat > 0) exit

0 commit comments

Comments
 (0)