Skip to content

Instantly share code, notes, and snippets.

@zbeekman
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zbeekman/bd69647eabdc9e87162b to your computer and use it in GitHub Desktop.
Save zbeekman/bd69647eabdc9e87162b to your computer and use it in GitHub Desktop.
blind attempt at patching segfault for test 6 when using NAG
diff --git i/src/json_module.f90 w/src/json_module.f90
index 07aca92..1f704e1 100644
--- i/src/json_module.f90
+++ w/src/json_module.f90
@@ -4285,6 +4285,7 @@
![the line is read in chunks until the end of the line is reached]
if (istat==0) then
do
+ isize = 0
read(iunit,fmt=nfmt,advance='NO',size=isize,iostat=istat) chunk
if (istat==0) then
line = line//chunk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment