@@ -256,7 +256,7 @@ subroutine load_from_unit(self, unit, error, json)
256
256
! > Optional JSON format
257
257
logical , optional , intent (in ) :: json
258
258
259
- type (toml_error), allocatable :: toml_error
259
+ type (toml_error), allocatable :: local_error
260
260
type (toml_table), allocatable :: table
261
261
type (toml_table), pointer :: jtable
262
262
class(toml_value), allocatable :: object
@@ -267,10 +267,10 @@ subroutine load_from_unit(self, unit, error, json)
267
267
if (is_json) then
268
268
269
269
! > init JSON interpreter
270
- call json_load(object, unit, error= toml_error )
271
- if (allocated (toml_error )) then
270
+ call json_load(object, unit, error= local_error )
271
+ if (allocated (local_error )) then
272
272
allocate (error)
273
- call move_alloc(toml_error % message, error% message)
273
+ call move_alloc(local_error % message, error% message)
274
274
return
275
275
end if
276
276
@@ -286,11 +286,11 @@ subroutine load_from_unit(self, unit, error, json)
286
286
else
287
287
288
288
! > use default TOML parser
289
- call toml_load(table, unit, error= toml_error )
289
+ call toml_load(table, unit, error= local_error )
290
290
291
- if (allocated (toml_error )) then
291
+ if (allocated (local_error )) then
292
292
allocate (error)
293
- call move_alloc(toml_error % message, error% message)
293
+ call move_alloc(local_error % message, error% message)
294
294
return
295
295
end if
296
296
0 commit comments