diff liboctave/oct-shlib.h @ 11501:331fcc41ca23

data member initialization fixes
author John W. Eaton <jwe@octave.org>
date Thu, 13 Jan 2011 03:04:51 -0500
parents cbc402e64d83
children fd0a3ac60b0e
line wrap: on
line diff
--- a/liboctave/oct-shlib.h
+++ b/liboctave/oct-shlib.h
@@ -43,7 +43,7 @@
   public:
 
     shlib_rep (void) 
-      : count (1), file (), tm_loaded (time_t ()) { }
+      : count (1), file (), tm_loaded (time_t ()), fcn_names () { }
 
   protected:
 
@@ -121,8 +121,8 @@
     }
 
   octave_shlib (const octave_shlib& sl)
+    : rep (sl.rep)
     {
-      rep = sl.rep;
       rep->count++;
     }