From 04072267dc067f295d930832aef2eb1e889a0a08 Mon Sep 17 00:00:00 2001
From: Fons Rademakers <Fons.Rademakers@cern.ch>
Date: Wed, 6 Dec 2000 23:56:12 +0000
Subject: [PATCH] fix for fix 1422. Prevents restoring the address of a
 temporary file that does not exists anymore. By Philippe.

git-svn-id: http://root.cern.ch/svn/root/trunk@1127 27541ba8-7e3a-0410-8455-c3a389f83636
---
 cint/src/pause.c      | 4 +++-
 cint/src/v6_pause.cxx | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/cint/src/pause.c b/cint/src/pause.c
index 9026e83595f..65e7efcf8b7 100644
--- a/cint/src/pause.c
+++ b/cint/src/pause.c
@@ -653,7 +653,9 @@ void G__rewinddictionary()
     }
   }
 #ifndef G__OLDIMPLEMENTATION1422
-  G__ifile = errorifile;
+  /* If the file info saved was related to a temporary file
+     there is no use to reput it */
+  if (errorifile.filenum!=G__MAXFILE-1) G__ifile = errorifile;
 #endif
   errordictpos.var = (struct G__var_array*)NULL;
 }
diff --git a/cint/src/v6_pause.cxx b/cint/src/v6_pause.cxx
index 9026e83595f..65e7efcf8b7 100644
--- a/cint/src/v6_pause.cxx
+++ b/cint/src/v6_pause.cxx
@@ -653,7 +653,9 @@ void G__rewinddictionary()
     }
   }
 #ifndef G__OLDIMPLEMENTATION1422
-  G__ifile = errorifile;
+  /* If the file info saved was related to a temporary file
+     there is no use to reput it */
+  if (errorifile.filenum!=G__MAXFILE-1) G__ifile = errorifile;
 #endif
   errordictpos.var = (struct G__var_array*)NULL;
 }
-- 
GitLab