dtinfo: Resolve coverity warnings related to uninitialised members of classes
authorPeter Howkins <flibble@users.sf.net>
Thu, 19 Apr 2018 22:25:47 +0000 (23:25 +0100)
committerPeter Howkins <flibble@users.sf.net>
Thu, 19 Apr 2018 22:25:47 +0000 (23:25 +0100)
48 files changed:
cde/programs/dtinfo/DtMmdb/StyleSheet/DocParser.C
cde/programs/dtinfo/DtMmdb/api/info_base.C
cde/programs/dtinfo/DtMmdb/btree/mmdb_btree.C
cde/programs/dtinfo/DtMmdb/compression/code.C
cde/programs/dtinfo/DtMmdb/dti_cc/CC_Tokenizer.C
cde/programs/dtinfo/DtMmdb/dti_excs/Exception.C
cde/programs/dtinfo/DtMmdb/index/index.C
cde/programs/dtinfo/DtMmdb/index/mphf_index.C
cde/programs/dtinfo/DtMmdb/object/oid_t.C
cde/programs/dtinfo/DtMmdb/oliasdb/mark.C
cde/programs/dtinfo/DtMmdb/oliasdb/mark_base.C
cde/programs/dtinfo/DtMmdb/schema/object_dict.C
cde/programs/dtinfo/DtMmdb/schema/store_desc.C
cde/programs/dtinfo/DtMmdb/utility/xtime.C
cde/programs/dtinfo/dtinfo/src/Agents/BookmarkEditMotif.hh
cde/programs/dtinfo/dtinfo/src/Agents/GraphicAgentMotif.C
cde/programs/dtinfo/dtinfo/src/Agents/HelpAgent.C
cde/programs/dtinfo/dtinfo/src/Agents/LibraryAgentMotif.hh
cde/programs/dtinfo/dtinfo/src/Agents/MapAgentMotif.C
cde/programs/dtinfo/dtinfo/src/Agents/MarkChooser.C
cde/programs/dtinfo/dtinfo/src/Agents/MarkListView.C
cde/programs/dtinfo/dtinfo/src/Agents/MessageAgentMotif.hh
cde/programs/dtinfo/dtinfo/src/Agents/NodeHistoryAgentMotif.hh
cde/programs/dtinfo/dtinfo/src/Agents/NodeListAgentMotif.hh
cde/programs/dtinfo/dtinfo/src/Agents/NodePrintAgent.C
cde/programs/dtinfo/dtinfo/src/Agents/NodeWindowAgentMotif.C
cde/programs/dtinfo/dtinfo/src/Agents/PrefAgentMotif.C
cde/programs/dtinfo/dtinfo/src/Agents/SearchResultsAgentMotif.hh
cde/programs/dtinfo/dtinfo/src/Agents/UrlAgentMotif.C
cde/programs/dtinfo/dtinfo/src/Managers/EnvMgr.C
cde/programs/dtinfo/dtinfo/src/Managers/GlobalHistoryMgr.hh
cde/programs/dtinfo/dtinfo/src/Managers/GraphicsMgr.hh
cde/programs/dtinfo/dtinfo/src/Managers/LocalHistoryMgr.C
cde/programs/dtinfo/dtinfo/src/Managers/LocalHistoryMgr.hh
cde/programs/dtinfo/dtinfo/src/Managers/WorkspaceMgr.C
cde/programs/dtinfo/dtinfo/src/OnlineRender/CanvasRenderer.C
cde/programs/dtinfo/dtinfo/src/Other/AppPrintData.C
cde/programs/dtinfo/dtinfo/src/Other/WindowSystemMotif.C
cde/programs/dtinfo/dtinfo/src/Query/QueryEditor.C
cde/programs/dtinfo/dtinfo/src/UAS/Base/UAS_BookcaseEntry.C
cde/programs/dtinfo/dtinfo/src/UAS/DtSR/Tml_TextRenderer.C
cde/programs/dtinfo/dtinfo/src/UAS/DtSR/Util_Classes/DictLink.hh
cde/programs/dtinfo/dtinfogen/infolib/etc/BookTasks.C
cde/programs/dtinfo/dtinfogen/infolib/etc/DataRepository.h
cde/programs/dtinfo/dtinfogen/infolib/etc/FirstOf.C
cde/programs/dtinfo/dtinfogen/infolib/etc/NodeData.C
cde/programs/dtinfo/dtinfogen/infolib/etc/StyleTask.C
cde/programs/dtinfo/dtinfogen/infolib/etc/Token.C

index eb6e7f9062f75cd0ea4bdacd3f14bab24badac84..54907708b7fb0cf03f758b44d0d0762d4a66d016 100644 (file)
@@ -47,7 +47,7 @@ static ostrstream& terminate(ostrstream& ost)
 #endif
 
 DocParser::DocParser(Resolver &r)
-: f_resolver(r),
+: f_resolver(r), f_ignoring_element(0),
 #if defined(SC3) || defined(__osf__)
   f_buffer(new char[DATA_BUF_SIZ]),
   f_output(f_buffer, DATA_BUF_SIZ)
index 6d6a568c96474c1cfcdabc624a98b1d1e98a2f20..efa60b519f3943aed1bf6ed1bff85482a82e3a9b 100644 (file)
@@ -121,6 +121,10 @@ debug(cerr, base_ds);
           }
       end_try;
    }
+   
+#ifdef C_API
+   f_index_id = 0;
+#endif
 
    MESSAGE(cerr, form("info base %s in %s available.", base_name, base_dir));
 }
index 5e53fb9870fd8f9b83e86b7428dd11ae9aa90ee4..aa11fc89ffa9f5d44b1608cc68830214e2dc8cf3 100644 (file)
@@ -63,6 +63,8 @@ btree::btree(const char* store_name)
    btree_info.prefix = NULL;
    btree_info.lorder = 0;
 
+   key_DBT.data = 0;
+   key_DBT.size = 0;
 
    int mode = O_CREAT|O_RDWR;
 
index 958d622ad55173325b43a3732ff38174cf371d84..a122d1bd3e57cc410181867212df7d1bca8e6504 100644 (file)
@@ -51,7 +51,7 @@
 #include "compression/code.h"
 
 encoding_unit::encoding_unit(ostring* w, unsigned int f) :
-   word(w), freq(f), code(0)
+   word(w), freq(f), code(0), bits(0), leaf_htr_node(NULL)
 {
 }
 
index ef0f51880803969a4d15c41ee2c8073c7cf98ebc..b1278a6534e4049e0683d8316a6be087b7afd489 100644 (file)
@@ -32,6 +32,7 @@ CC_Tokenizer::CC_Tokenizer( const CC_String &s )
   *((char *) memcpy(str_, s.data(), len) + len) = '\0';
   current_ptr = str_;
   touched = FALSE;
+  strtok_buf = 0;
 }
 
 
index 3837dc96e01119aa89ce51e537c434fe30bdc7d6..d68753052974d2f840cc8466061a9925b5a5ca7a 100644 (file)
@@ -40,7 +40,7 @@ char *Exception::g_next_avail = Exception::g_temp_space;
 // /////////////////////////////////////////////////////////////////
 
 Exception::Exception()
-: f_thrown(0), f_thrown_as_pointer(1), f_temporary(0), f_line(0)
+: f_thrown(0), f_thrown_as_pointer(1), f_temporary(0), f_line(0), f_file(NULL), f_previous_exception(NULL)
 {
   PRINTF (("Constructed Exception obj @ %p\n", this));
 }
index 7efccc8e3c6219cdd901f60bc64b188c8db2e7d3..de8373f63ef5caf2a1ea24ba7ceeebf38eb9895d 100644 (file)
@@ -63,7 +63,7 @@ void c_index::init_persistent_info(persistent_info* x)
    set_mode(SWAP_ALLOWED, false);
 }
 
-c_index::c_index(c_code_t c_cd) : composite(c_cd)
+c_index::c_index(c_code_t c_cd) : composite(c_cd), v_inv_lists_hd(NULL)
 { 
    v_cmp_selector = 0;
 }
index e4947801fc4bf8a3a0785ffadea8beea0fd079b3..65c674c346039b7d4692ea5add35ad7a01cb7205 100644 (file)
@@ -62,6 +62,7 @@ mphf_index::mphf_index() : c_index(MPHF_INDEX_CODE), f_key_file_name(0)
 
    v_mphf = 0;
    v_inv_lists_hd = 0;
+   v_key_loc_pair_out = NULL;
 }
 
 void mphf_index::init_data_member(fast_mphf_handler* mp, 
index c453c1d7406fb28bfe41ae8f822145894720fc94..6c5d08cf8cdae296ee219fe0a21f797bcaf6af67 100644 (file)
@@ -109,6 +109,8 @@ oid_t::oid_t(const char* source, Boolean ascii_format, Boolean swap_order)
       }
    }
 
+   v_e_code = 0;
+
 /*
 MESSAGE(cerr, "constr oid_t using a string");
 debug(cerr, v_c_code);
index b7d7357153ac7397024617b84d6cdf2c88986808..c0522525a26cb806cef34fe9475c4384bd770736 100644 (file)
@@ -51,7 +51,7 @@
 
 #include "oliasdb/mark.h"
 
-umark::umark() : mmdb_tuple(2, USER_MARK_CODE) 
+umark::umark() : mmdb_tuple(2, USER_MARK_CODE), mark_set_hd_ptr(NULL)
 {
 }
 
index f2ac21ccda5c5128cef8c326f350b42a86ad1754..1dbad82f0cbdd29954f6ab46139ad4c2518e0afe 100644 (file)
@@ -57,6 +57,7 @@
 mark_base::mark_base(user_base::rw_flag_t rw) : 
        user_base(MARK_SPEC, rw)
 {
+   mark_set_hd = NULL;
 }
 
 
@@ -67,8 +68,10 @@ mark_base::mark_base( const char* base_dir,
                     ) : 
        user_base(base_dir, base_nm, base_ds, MARK_SPEC, rw) 
 {
-   if ( checking_status != SUCC ) 
+   if ( checking_status != SUCC ) {
+      mark_set_hd = NULL;
       return;
+   }
 
    desc* ptr = first_desc_ptr;
 
index f708cf56a1fbd6e5610b3a6dc48fb4355ecb1ffc..4c1c00b4c98a7ed5dd9624322294147ddd63f072 100644 (file)
@@ -68,7 +68,7 @@ extern void schemarestart(FILE*);
 extern FILE *schemain;
 
 object_dict::object_dict() :
-   v_dict(desc_name_eq, desc_name_ls), v_desc_ptr(0)
+   v_dict(desc_name_eq, desc_name_ls), v_desc_ptr(0), v_last_desc_ptr(NULL)
 {
    v_db_path[0] = 0;
 }
index 4e18568534d71514baccb08300d1d0d759be21e8..1cf4a98d0488e2c892a43cb897944ac5436e3319 100644 (file)
@@ -76,6 +76,8 @@ store_desc::store_desc(const char* name) : desc(name)
 
    if ( order_str == 0 )
       throw(stringException("machine type not supported"));
+
+   v_store_ptr = NULL;
 }
 
 store_desc::store_desc(int tp, const char* comment): 
@@ -95,6 +97,8 @@ store_desc::store_desc(int tp, const char* comment):
 
    if ( order_str == 0 )
       throw(stringException("machine type not supported"));
+
+   v_store_ptr = NULL;
 }
 
 store_desc::~store_desc()
index 50700e64c7984243beb0ecd556af3aec108563de..09bb0fa0b90dd946a46df84cac4bfdeb59c85bac 100644 (file)
@@ -59,6 +59,8 @@ xtime::xtime() :
 
 v_cpu_stamp(0), v_elapsed_stamp(0)
 {
+   memset(&v_time_regs, 0, sizeof(struct tms));
+   memset(&v_tv, 0, sizeof(struct timeval));
 }
 
 void xtime::stop(float &cpu_time, long &elp_time)
index 08e93b2ac08d369fe657eef7913c8382d6bbb371..f9998b357a0d5ff5470550492865229b629503f1 100644 (file)
@@ -35,7 +35,10 @@ public:
   BookmarkEdit (UAS_Pointer<Mark> &mark)
     : f_mark_ptr (mark),
       f_shell (NULL),
-      f_modified (FALSE)
+      f_modified (FALSE),
+      f_name_text(NULL),
+      f_notes_text(NULL),
+      f_wm_delete_callback(NULL)
     {
       MarkMgr::request ((UAS_Receiver<MarkMoved> *) this);
     }
index b995f1d2c5fd318f7ff09ad9fda4dd0a4fc6aeb3..c71b698f8c7429c3abdaaf4b66ac99d75f66f94a 100644 (file)
@@ -121,7 +121,12 @@ GraphicAgent::GraphicAgent (UAS_Pointer<UAS_Common> &node_ptr,
   f_panner_state (PANNER_NONE),
   f_current_scale (100),
   f_scale_button(NULL),
-  f_setcustom(0)
+  f_setcustom(0),
+  f_panner(NULL),
+  f_pixmap_widget(NULL),
+  f_view_menu(NULL),
+  f_message_area(NULL),
+  f_custom_scale(NULL)
 
 {
   f_graphic->pixmap_graphic()->agent(this);
index e51be8338dc768d5723f4925179e1a834abc025e..c3c6f4a847931c0cc98cad37ca2aa147f4c1f96c 100644 (file)
@@ -133,7 +133,8 @@ HelpAgent *HelpAgent::g_help_agent;
 // /////////////////////////////////////////////////////////////////
 
 HelpAgent::HelpAgent()
-: f_helper (NULL)
+: f_helper (NULL),
+  f_appXrmDb(NULL)
 {
   Widget app_shell = window_system().toplevel();
   f_cursor = create_help_cursor(app_shell);
index 6694fc074349f06e85283df84917b1c2ab581554..09039d12ae018436a090d3b3f7b58acf7b0cf57d 100644 (file)
@@ -136,6 +136,21 @@ LibraryAgent::LibraryAgent()
   f_tracking_hierarchy (NULL),
   f_popped_down (TRUE),
   f_close (NULL),
-  f_close_sensitive (FALSE)
+  f_close_sensitive (FALSE),
+  f_doc_tree_view(),
+  f_copy(NULL),
+  f_detach(NULL),
+  f_detach2(NULL),
+  f_view(NULL),
+  f_view2(NULL),
+  f_print(NULL),
+  f_print2(NULL),
+  f_print_as(NULL),
+  f_remove(NULL),
+  f_remove2(NULL),
+  f_auto_track(NULL),
+  f_status_text(NULL),
+  f_scope_menu(NULL)
+  
 {
 }
index f47a8ef9fe0d485a4b5efd02f4c9a4e247e3da20..e690f4f1033afdc903448a99339db9ab43bad5d4 100644 (file)
@@ -220,7 +220,16 @@ MapButton::destroy()
 
 MapAgent::MapAgent()
 : f_shell (NULL),
-  f_onscreen (FALSE)
+  f_onscreen (FALSE),
+  f_locked(FALSE),
+  f_map_mode(LOCAL_MODE),
+  f_porthole(NULL),
+  f_panner(NULL),
+  f_tree(NULL),
+  f_wm_delete_callback(NULL),
+  f_lock(NULL),
+  f_min_tree_width(0),
+  f_min_tree_height(0)
 {
 }
 
index 96576c61c7007ea36425301f2acf1f1991b99fb7..b676e33bb4beeb1654af58aa0228c092d2b9096f 100644 (file)
@@ -84,7 +84,8 @@
 MarkChooser::MarkChooser (Widget parent, xList<MarkCanvas *> &marks,
                          const char *title_key, const char *ok_key)
 : f_selected_item (-1),
-  f_mark_list (&marks)
+  f_mark_list (&marks),
+  f_done(FALSE)
 {
     create_ui (parent, title_key, ok_key);
     update_list();
index 7be5831021edf8ff54928d043894803b85b7129d..a8c2d81e6a0f11eaaec60d73038c4c0989642595 100644 (file)
@@ -82,7 +82,8 @@
 
 MarkListView::MarkListView()
 : f_shell (NULL),
-  f_popped_up (FALSE)
+  f_popped_up (FALSE),
+  f_selected_item(0)
 {
 }
 
index 506e329d22c8d0495a1e491c7a4b84244e02d4f0..cf3417b6ee403c021d7479e16cd8579c48a6f2a7 100644 (file)
@@ -72,6 +72,10 @@ private: // variables
 inline
 MessageAgent::MessageAgent()
 : f_dialog (NULL),
-  f_exit_flag (False)
+  f_exit_flag (False),
+  f_text(NULL),
+  f_real_parent(NULL),
+  f_popped_up(FALSE),
+  f_pressed_ok(FALSE)
 {
 }
index 2fbe757bb7b60addee86f3eb8f89e4b92f2c47df..068c7f30cb002d103beabb2410c8f7c3e9e7b0a5 100644 (file)
@@ -38,7 +38,7 @@ class NodeHistoryAgent : public WWL,
 {
 public: // functions
   NodeHistoryAgent()
-    : f_shell (NULL), f_selected_item (0)
+    : f_shell (NULL), f_selected_item (0), f_popped_up(FALSE)
     { }
   virtual ~NodeHistoryAgent();
   void display();
index 0cf6575f6eb1b10a7215c7c98e854ed04148f81b..6a3323749b275736cdb189af9b30e0ed7fe2f117 100644 (file)
@@ -40,7 +40,16 @@ class WXmPanedWindow;
 class NodeListAgent : public Agent
 {
 public: // functions
-  NodeListAgent() {}
+  NodeListAgent() :
+    f_shell(NULL),
+    f_form(NULL),
+    f_menu_bar(NULL),
+    f_list_form(NULL),
+    f_list(NULL),
+    f_panel(NULL),
+    f_pane(NULL),
+    f_wm_delete_callback(NULL)
+  {}
   ~NodeListAgent();
 
   void init ();
index 5baff81992368c2bc6133173bb17715c55eb366e..86fde79165d1ba4221d0e46b3f9d57d46aeb2a67 100644 (file)
@@ -278,7 +278,7 @@ _DtHelpCreatePrintArea(Widget parent,
 // /////////////////////////////////////////////////////////////////
 
 NodePrintAgent::NodePrintAgent()
-    :  f_node_view_info (NULL), f_help_dsp_area(NULL)
+    :  f_node_view_info (NULL), f_help_dsp_area(NULL), f_form(NULL)
 {
 }
 
index 60ad4846faece0e248f3a0a200de78fee3596ad4..7686e88d1a9c5d60e2cd927b6e4ff393e1ca67b6 100644 (file)
@@ -787,7 +787,34 @@ NodeWindowAgent::NodeWindowAgent (u_int serial_no)
   f_hscrollbar_offset(0),
   f_graphic_segment(NULL),
   f_graphics_handler(NULL),
-  f_close_sensitive(FALSE)
+  f_close_sensitive(FALSE),
+  f_frame(NULL),
+  f_create_bmrk(NULL),
+  f_create_anno(NULL),
+  f_create_link(NULL),
+  f_move_mark(NULL),
+  f_edit_mark(NULL),
+  f_delete_mark(NULL),
+  f_detach_graphic(NULL),
+  f_detach_menu(NULL),
+  f_detach_button(NULL),
+  f_attach_button(NULL),
+  f_raise_button(NULL),
+  f_preview_menu(NULL),
+  f_preview_label(NULL),
+  f_default_menu(NULL),
+  f_clear_search_hits(NULL),
+  f_graphical_map(NULL),
+  f_search_form(NULL),
+  f_search_menu_button(NULL),
+  f_print(NULL),
+  f_print2(NULL),
+  f_print_as(NULL),
+  f_move_mark_sensitive(0),
+  f_last_access_time(0),
+  f_locked(FALSE),
+  f_wm_delete_callback(NULL)
+  
 {
     UAS_Common::request ((UAS_Receiver<UAS_LibraryDestroyedMsg> *) this);
 
index e50132711631a3bb08cc48fc7a0264c23844bf01..0bff988bbb52677f5e9107f27063fc0e715e05ab 100644 (file)
@@ -259,7 +259,7 @@ public:
 
 
 PrefAgent::PrefAgent()
-: f_shell(NULL)
+: f_shell(NULL), f_top_panel(NULL), f_timeout(NULL)
 {
 }
 
index 1b2fe58da1cf82f95ee33d198e3565f1b88c3664..8d041d9c9136be314ac528b4207c2d5b2f153be4 100644 (file)
@@ -93,6 +93,9 @@ protected: // variables
 
 inline
 SearchResultsAgent::SearchResultsAgent()
-: f_work_proc_id (0), f_popped_up(FALSE)
+: f_work_proc_id (0), f_popped_up(FALSE), f_my_ale(NULL), f_retain(FALSE),
+  f_results(NULL), f_selected_item(0), f_retain_toggle(NULL), f_query_text(NULL),
+  f_hits_label(NULL), f_scope_label(NULL), f_docs_to_display(0), f_count(0),
+  f_scale(0), f_header_indent(0)
 {
 }
index d7997b55c55a34dab07784ca57b18fb00111ad05..6a0f5683896fad800a25332d71130b508f375ec0 100644 (file)
@@ -77,6 +77,7 @@ extern char g_top_locator[];
 UrlAgent::UrlAgent () {
     fShell = NULL;
     fPrefWindow = 0;
+    fPoppedUp = FALSE;
 }
 
 UrlAgent::~UrlAgent () {
index 29ee396c74b6d094b2489a44003d12d75265422a..f0270907d104a3fcad24f68c9bf7193586f0d6d3 100644 (file)
@@ -95,7 +95,8 @@ EnvMgr::EnvMgr() : f_argc(0),
                   f_lang(NULL),
                    f_secondary(False),
                    f_verbose(False),
-                   f_debug(False)
+                   f_debug(False),
+                   f_autohelp(False)
 {
   const char* lang;
   if ((lang = getenv("LC_ALL")) == NULL)
index fa831fe8e53ecab67a41c5830e09e9f28563705e..b11a1296cdc92a69e1cdd71f723db8330e374f77 100644 (file)
@@ -70,7 +70,7 @@ struct HistoryDelete : public Destructable
 struct HistoryAdd : public Destructable
 {
   HistoryAdd (UAS_Pointer<UAS_Common> &node_ptr)
-    : f_new_entry(node_ptr) { }
+    : f_new_entry(node_ptr), f_moving(false) { }
 
   UAS_Pointer<UAS_Common> f_new_entry;      // UAS_Pointer to UAS_Common displayed.
   bool f_moving;                  // True if a moved entry.
index 2c09fbfc79d52890ab3ae4113bfad117d30a2d8b..c10d4076b8f0947ebca90c521f6c9593cb8409b6 100644 (file)
@@ -98,7 +98,8 @@ class Graphic: public UAS_Base {
                fPixmap (0),
                fDetachedPixmap (0),
                fDetached (0),
-               fObj (doc->create_embedded_object (locator)) {
+               fObj (doc->create_embedded_object (locator)),
+                fagent(NULL) {
        }
 
        ~Graphic () {
index 379dad5af5b1f16d1378532b8b1f6c5b50de99e6..81d60b0f7be546c70a6cb915ff914ddcdf7031e4 100644 (file)
@@ -66,6 +66,7 @@
 LocalHistoryMgr::LocalHistoryMgr()
 {
   f_current = NULL;
+  f_first = NULL;
 }
 
 
index b396893c1afe6629bc02928644e2d99417f88849..89609c7cf112ee88cc77b6388b52c809f721bd8f 100644 (file)
@@ -33,7 +33,7 @@ class LocalHistoryEntry
 {
 private:  // functions
   LocalHistoryEntry (UAS_Pointer<UAS_Common> &doc_ptr)
-    : f_doc_ptr (doc_ptr), f_anchor (NULL) { }
+    : f_doc_ptr (doc_ptr), f_anchor (NULL), f_previous(NULL), f_next(NULL) { }
   LocalHistoryEntry()
     { }
   ~LocalHistoryEntry();
index 0ca6638293749174a02b53c0b18b3c7e14b59955..a378e061c4b6f91b3e49f81c6bb86f045e950927 100644 (file)
@@ -64,6 +64,8 @@ WorkspaceMgr::WorkspaceMgr()
 
     DtWsmAddCurrentWorkspaceCallback( window_system().toplevel(),
                   (DtWsmWsChangeProc) PrimaryWorkspace_cb, this );
+                  
+    f_actual = 0;
 }
 
 
index 4583f2778e5830b8195e4f5291ec9c43544a04e7..edd4bbaeec085b3fc4c3dffb108ea24640be42d2 100644 (file)
@@ -236,7 +236,11 @@ CanvasRenderer::CanvasRenderer(int font_scale)
   f_link_idx (-1),
   f_font_scale(font_scale),
   fBogusSymbol(gElemSymTab->intern("%BOGUS")),
-  f_level(0)
+  f_level(0),
+  f_vcc(0),
+  f_current_container(NULL),
+  f_current_displayable(NULL),
+  f_default_features(NULL)
 {
   // make symbols 
   for ( int i=0; i < REND_SYMBOLS; i++)
index 2acfcf7ed2fc5cf45ad2fb1b567428ad4c52b5e0..e0a3d0e6599fcff88ac62e495e7cd5740e05d8ee 100644 (file)
@@ -64,6 +64,8 @@ AppPrintData::AppPrintData()
     f_print_shell = NULL;
     f_print_only = FALSE;
     f_outline_element = NULL;
+    f_print_list = NULL;
+    f_pshell_parent = NULL;
 };
 
 //--------- Destructors ----------------------------------
index b12d99ff8a869fe5ca0c80d80eea0c8a45547fa6..4f7c90f4f454103d86bf21ebe57d47a408912b57 100644 (file)
@@ -226,7 +226,10 @@ public:
   Shell_Info (Widget w)
     : f_shell (w),
       f_size_hints (NULL),
-      f_restore (False)
+      f_restore (False),
+      f_has_size_hints(False),
+      f_iconic(False),
+      f_has_wm_state(False)
     { }
 
 public:
@@ -252,7 +255,14 @@ WindowSystem::WindowSystem (int &argc, char *argv[])
   f_shell_list (20),
   f_cursor_stack_pos(-1),
   f_dtinfo_font(NULL),
-  f_dtinfo_space_font(NULL)
+  f_dtinfo_space_font(NULL),
+  f_print_display(NULL),
+  f_default_print_pixmap(0),
+  f_print_defpix_width(0),
+  f_print_defpix_height(0),
+  f_detached_width(0),
+  f_detached_height(0),
+  f_print_screen(NULL)
 {
   f_argc = &argc;
   f_argv = argv;
index 60ffb5973f776182eb0c9384f9845dc6f16540d8..1c86127f64927aeaabfc0e22c952f459e7ee0e7e 100644 (file)
@@ -105,7 +105,8 @@ QueryEditor::QueryEditor(UAS_SearchEngine& search_engine)
 : f_query (NULL),
   f_query_view (NULL),
   f_shell (NULL),
-  f_null_terms (0)
+  f_null_terms (0),
+  f_min_term_width(0)
 {
   f_query_editor = this;
 
index 2ac399153ff6345867cc8f0bdd60b4b74cd97aec..f628fb0b8b87c88a82e4925b9a79461db570cc64 100644 (file)
@@ -52,7 +52,8 @@ UAS_BookcaseEntry::UAS_BookcaseEntry(UAS_Pointer<UAS_Common> &bookcase,
                                      int searchable) 
 : f_searchable(searchable),
   f_name(0),
-  f_base_num(-1)
+  f_base_num(-1),
+  f_infolib_num(0)
 {
     int len;
 
index 3e559b7b42b5fc12824525942c3dd78563946309..bbc1f6f13a8735dddf088cd30b094538d31ff20e 100644 (file)
@@ -32,7 +32,7 @@
 #include "StyleSheet/FeatureValue.h"
 
 Tml_TextRenderer::Tml_TextRenderer(ostringstream &ostr, UAS_SearchZones &zones) :
-       f_ostr(ostr), f_zones(zones)
+       f_ostr(ostr), f_zones(zones), f_current_level(0)
 {
 }
 
index 8b4347a9e3df539f048984dc617b6bf5691b29eb..127a469132ac4107cf1a2ee13ab0d6f94730a744 100644 (file)
@@ -17,7 +17,7 @@ template<class K, class V> class DictLink
     DictLink<K,V>* pre;
     DictLink<K,V>* suc;
 
-    DictLink(const K& k, const V& v) : key(k), value(v) { };
+    DictLink(const K& k, const V& v) : key(k), value(v), pre(NULL), suc(NULL) { };
     ~DictLink() { if (suc) delete suc; } // delete all links recursively
 };
 
index 8cc4393b83223b0a7327ae642ab06f4613fbd5d2..7fffc32d9bf3a4252bb66f03c3c4369cbc363f18 100644 (file)
@@ -89,12 +89,15 @@ BookCaseTask::BookCaseTask(const char *infolib)
   if ( !Dispatch::RunTocGenOnly() ) {
     style = new StyleTaskDB(this);
     addSubTask(style);
+  } else {
+    style = NULL;
   }
 
   book = new BookTask(this);
   addSubTask(book);
 
   f_style = NULL;
+  f_search_storage = NULL;
 }
 
 
index d86e2023b8971a40a0505b98aa29f0690daf3508..b72471453a2b9bbc1dfb2ac8a452b47b3cb17087 100644 (file)
@@ -46,6 +46,9 @@ public:
     if ( this != &t ) { 
       this->level = t.level;
       this->Buf = t.Buf;
+    } else {
+      this->level = -1;
+      this->Buf = NULL;
     }
   }
   Rec & operator=( Rec &t ) {
index 0518f39c6cf01b61d4fe4f69ec743504c479e902..48c445e4706bc96e445f658083985337808b0dc4 100644 (file)
@@ -90,6 +90,8 @@ FirstOf::FirstOf( const Token &t,
    }
 
   }
+  
+  elist = NULL;
 }
 
 //--------------------------------------------------------------------------
index d8120a9c15faa876bce47eb700fe1a879c25a3fa..313952e23f712a91b8ce73d720e59e24a95650cd 100644 (file)
@@ -269,6 +269,8 @@ NodeData::NodeData( NodeTask *parent, const Token &t)
 #endif
 
   write_start_tag ( t, NodeBuffer );
+  
+  internal_buffer = NULL;
 }
 
 //---------------------------------------------------------------------
index 6970bcf0b68beef878254cba6e17465287bf7f6e..0089b755b38dc4a0fa81a0a0898cd8027d3b5f5c 100644 (file)
@@ -78,6 +78,7 @@ StyleTask::StyleTask()
    f_buffer = NULL;
    f_pathbuf = NULL;
    f_locator = NULL;
+   f_dataMode = inPath;
 
    feature_depth = new Stack<int>;
 
index 4aa9ab38dba54b2b04a859c62d6793f35193ac90..086ab272624b9d61670432e458b07ac0bb21ab1a 100644 (file)
@@ -56,6 +56,9 @@ Token::Token()
   entity_defn = NULL;
   tokType=TK_INVALID;
   f_olaf = -1;
+  f_level = 0;
+  f_file = NULL;
+  f_line = 0;
   
 #ifdef FISH_DEBUG
   DBUG_VOID_RETURN;