diff src/help.cc @ 10066:2cd940306a06

make unwind_protect frames local
author Jaroslav Hajek <highegg@gmail.com>
date Wed, 06 Jan 2010 13:18:41 +0100
parents 8e345f2fe4d6
children cd96d29c5efa
line wrap: on
line diff
--- a/src/help.cc
+++ b/src/help.cc
@@ -666,13 +666,12 @@
   bool retval = false;
 
   // FIXME -- this is a bit of a kluge...
-  unwind_protect::protect_var (reading_script_file);
+  unwind_protect frame;
+  frame.protect_var (reading_script_file);
   reading_script_file = true;
 
   h = get_help_from_file (nm, symbol_found, file);
 
-  unwind_protect::run ();
-
   if (h.length () > 0)
     retval = true;