Skip to content

Commit 75121cf

Browse files
committed
Contatenate differently
1 parent 7bc295a commit 75121cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/stdlib_io_np_save.fypp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ contains
212212
logical :: is_compressed
213213
character(len=:), allocatable :: msg
214214
type(string_type), allocatable :: files(:)
215+
type(string_type) :: new_string
215216

216217
if (present(iostat)) iostat = 0
217218
stat = 0
@@ -246,7 +247,8 @@ contains
246247
return
247248
end if
248249

249-
files = [files, string_type(typed_array%name)]
250+
new_string = string_type(typed_array%name)
251+
files = [files, new_string]
250252
#:endfor
251253
#:endfor
252254
class default

0 commit comments

Comments
 (0)