diff liboctave/kpse.cc @ 11501:331fcc41ca23

data member initialization fixes
author John W. Eaton <jwe@octave.org>
date Thu, 13 Jan 2011 03:04:51 -0500
parents 6ccf1130f23c
children 12df7854fa7c
line wrap: on
line diff
--- a/liboctave/kpse.cc	Thu Jan 13 02:48:07 2011 -0500
+++ b/liboctave/kpse.cc	Thu Jan 13 03:04:51 2011 -0500
@@ -312,6 +312,10 @@
 
 struct str_llist_elt
 {
+  str_llist_elt (void) : str (), moved (0), next (0) { }
+
+  ~str_llist_elt (void) { }
+
   std::string str;
   int moved;
   struct str_llist_elt *next;
@@ -1693,6 +1697,13 @@
 
 struct kpse_format_info_type
 {
+  kpse_format_info_type (void)
+    : type (), path (), raw_path (), path_source (), override_path (),
+      client_path (), cnf_path (), default_path (), suffix ()
+  { }
+
+  ~kpse_format_info_type (void) { }
+
   std::string type;          /* Human-readable description.  */
   std::string path;          /* The search path to use.  */
   std::string raw_path;      /* Pre-$~ (but post-default) expansion.  */
@@ -2081,6 +2092,10 @@
 
 struct cache_entry
 {
+  cache_entry (void) : key (), value (0) { }
+
+  ~cache_entry (void) { }
+
   std::string key;
   str_llist_type *value;
 };