changeset 9224:a6422d81bee7

pt-assign.cc (maybe_warn_former_built_in_variable): set initialized to true on first call
author John W. Eaton <jwe@octave.org>
date Wed, 20 May 2009 14:27:10 -0400
parents 902a4597dce8
children 3161ccb261ec
files src/ChangeLog src/pt-assign.cc
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed May 20 14:13:31 2009 +0200
+++ b/src/ChangeLog	Wed May 20 14:27:10 2009 -0400
@@ -1,3 +1,9 @@
+2009-05-20  John W. Eaton  <jwe@octave.org>
+
+	* pt-assign.cc (maybe_warn_former_built_in_variable):
+	Set initialized to true when done initializing vars set.
+	From Michael Goffioul  <michael.goffioul@gmail.com>.
+
 2009-05-20  Jaroslav Hajek  <highegg@gmail.com>
 
 	* ov-typeinfo.h
--- a/src/pt-assign.cc	Wed May 20 14:13:31 2009 +0200
+++ b/src/pt-assign.cc	Wed May 20 14:27:10 2009 -0400
@@ -149,6 +149,8 @@
 
       while (*p)
 	vars.insert (*p++);
+
+      initialized = true;
     }
 
   if (vars.find (nm) != vars.end ())