From: Peter Howkins Date: Thu, 19 Apr 2018 22:25:47 +0000 (+0100) Subject: dtinfo: Resolve coverity warnings related to uninitialised members of classes X-Git-Tag: 2.2.4a~74 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6e7e9d91e1a16edf9b1d5bda88ba576f8532bcca;p=oweals%2Fcde.git dtinfo: Resolve coverity warnings related to uninitialised members of classes --- diff --git a/cde/programs/dtinfo/DtMmdb/StyleSheet/DocParser.C b/cde/programs/dtinfo/DtMmdb/StyleSheet/DocParser.C index eb6e7f90..54907708 100644 --- a/cde/programs/dtinfo/DtMmdb/StyleSheet/DocParser.C +++ b/cde/programs/dtinfo/DtMmdb/StyleSheet/DocParser.C @@ -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) diff --git a/cde/programs/dtinfo/DtMmdb/api/info_base.C b/cde/programs/dtinfo/DtMmdb/api/info_base.C index 6d6a568c..efa60b51 100644 --- a/cde/programs/dtinfo/DtMmdb/api/info_base.C +++ b/cde/programs/dtinfo/DtMmdb/api/info_base.C @@ -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)); } diff --git a/cde/programs/dtinfo/DtMmdb/btree/mmdb_btree.C b/cde/programs/dtinfo/DtMmdb/btree/mmdb_btree.C index 5e53fb98..aa11fc89 100644 --- a/cde/programs/dtinfo/DtMmdb/btree/mmdb_btree.C +++ b/cde/programs/dtinfo/DtMmdb/btree/mmdb_btree.C @@ -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; diff --git a/cde/programs/dtinfo/DtMmdb/compression/code.C b/cde/programs/dtinfo/DtMmdb/compression/code.C index 958d622a..a122d1bd 100644 --- a/cde/programs/dtinfo/DtMmdb/compression/code.C +++ b/cde/programs/dtinfo/DtMmdb/compression/code.C @@ -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) { } diff --git a/cde/programs/dtinfo/DtMmdb/dti_cc/CC_Tokenizer.C b/cde/programs/dtinfo/DtMmdb/dti_cc/CC_Tokenizer.C index ef0f5188..b1278a65 100644 --- a/cde/programs/dtinfo/DtMmdb/dti_cc/CC_Tokenizer.C +++ b/cde/programs/dtinfo/DtMmdb/dti_cc/CC_Tokenizer.C @@ -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; } diff --git a/cde/programs/dtinfo/DtMmdb/dti_excs/Exception.C b/cde/programs/dtinfo/DtMmdb/dti_excs/Exception.C index 3837dc96..d6875305 100644 --- a/cde/programs/dtinfo/DtMmdb/dti_excs/Exception.C +++ b/cde/programs/dtinfo/DtMmdb/dti_excs/Exception.C @@ -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)); } diff --git a/cde/programs/dtinfo/DtMmdb/index/index.C b/cde/programs/dtinfo/DtMmdb/index/index.C index 7efccc8e..de8373f6 100644 --- a/cde/programs/dtinfo/DtMmdb/index/index.C +++ b/cde/programs/dtinfo/DtMmdb/index/index.C @@ -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; } diff --git a/cde/programs/dtinfo/DtMmdb/index/mphf_index.C b/cde/programs/dtinfo/DtMmdb/index/mphf_index.C index e4947801..65c674c3 100644 --- a/cde/programs/dtinfo/DtMmdb/index/mphf_index.C +++ b/cde/programs/dtinfo/DtMmdb/index/mphf_index.C @@ -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, diff --git a/cde/programs/dtinfo/DtMmdb/object/oid_t.C b/cde/programs/dtinfo/DtMmdb/object/oid_t.C index c453c1d7..6c5d08cf 100644 --- a/cde/programs/dtinfo/DtMmdb/object/oid_t.C +++ b/cde/programs/dtinfo/DtMmdb/object/oid_t.C @@ -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); diff --git a/cde/programs/dtinfo/DtMmdb/oliasdb/mark.C b/cde/programs/dtinfo/DtMmdb/oliasdb/mark.C index b7d73571..c0522525 100644 --- a/cde/programs/dtinfo/DtMmdb/oliasdb/mark.C +++ b/cde/programs/dtinfo/DtMmdb/oliasdb/mark.C @@ -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) { } diff --git a/cde/programs/dtinfo/DtMmdb/oliasdb/mark_base.C b/cde/programs/dtinfo/DtMmdb/oliasdb/mark_base.C index f2ac21cc..1dbad82f 100644 --- a/cde/programs/dtinfo/DtMmdb/oliasdb/mark_base.C +++ b/cde/programs/dtinfo/DtMmdb/oliasdb/mark_base.C @@ -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; diff --git a/cde/programs/dtinfo/DtMmdb/schema/object_dict.C b/cde/programs/dtinfo/DtMmdb/schema/object_dict.C index f708cf56..4c1c00b4 100644 --- a/cde/programs/dtinfo/DtMmdb/schema/object_dict.C +++ b/cde/programs/dtinfo/DtMmdb/schema/object_dict.C @@ -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; } diff --git a/cde/programs/dtinfo/DtMmdb/schema/store_desc.C b/cde/programs/dtinfo/DtMmdb/schema/store_desc.C index 4e185685..1cf4a98d 100644 --- a/cde/programs/dtinfo/DtMmdb/schema/store_desc.C +++ b/cde/programs/dtinfo/DtMmdb/schema/store_desc.C @@ -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() diff --git a/cde/programs/dtinfo/DtMmdb/utility/xtime.C b/cde/programs/dtinfo/DtMmdb/utility/xtime.C index 50700e64..09bb0fa0 100644 --- a/cde/programs/dtinfo/DtMmdb/utility/xtime.C +++ b/cde/programs/dtinfo/DtMmdb/utility/xtime.C @@ -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) diff --git a/cde/programs/dtinfo/dtinfo/src/Agents/BookmarkEditMotif.hh b/cde/programs/dtinfo/dtinfo/src/Agents/BookmarkEditMotif.hh index 08e93b2a..f9998b35 100644 --- a/cde/programs/dtinfo/dtinfo/src/Agents/BookmarkEditMotif.hh +++ b/cde/programs/dtinfo/dtinfo/src/Agents/BookmarkEditMotif.hh @@ -35,7 +35,10 @@ public: BookmarkEdit (UAS_Pointer &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 *) this); } diff --git a/cde/programs/dtinfo/dtinfo/src/Agents/GraphicAgentMotif.C b/cde/programs/dtinfo/dtinfo/src/Agents/GraphicAgentMotif.C index b995f1d2..c71b698f 100644 --- a/cde/programs/dtinfo/dtinfo/src/Agents/GraphicAgentMotif.C +++ b/cde/programs/dtinfo/dtinfo/src/Agents/GraphicAgentMotif.C @@ -121,7 +121,12 @@ GraphicAgent::GraphicAgent (UAS_Pointer &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); diff --git a/cde/programs/dtinfo/dtinfo/src/Agents/HelpAgent.C b/cde/programs/dtinfo/dtinfo/src/Agents/HelpAgent.C index e51be833..c3c6f4a8 100644 --- a/cde/programs/dtinfo/dtinfo/src/Agents/HelpAgent.C +++ b/cde/programs/dtinfo/dtinfo/src/Agents/HelpAgent.C @@ -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); diff --git a/cde/programs/dtinfo/dtinfo/src/Agents/LibraryAgentMotif.hh b/cde/programs/dtinfo/dtinfo/src/Agents/LibraryAgentMotif.hh index 6694fc07..09039d12 100644 --- a/cde/programs/dtinfo/dtinfo/src/Agents/LibraryAgentMotif.hh +++ b/cde/programs/dtinfo/dtinfo/src/Agents/LibraryAgentMotif.hh @@ -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) + { } diff --git a/cde/programs/dtinfo/dtinfo/src/Agents/MapAgentMotif.C b/cde/programs/dtinfo/dtinfo/src/Agents/MapAgentMotif.C index f47a8ef9..e690f4f1 100644 --- a/cde/programs/dtinfo/dtinfo/src/Agents/MapAgentMotif.C +++ b/cde/programs/dtinfo/dtinfo/src/Agents/MapAgentMotif.C @@ -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) { } diff --git a/cde/programs/dtinfo/dtinfo/src/Agents/MarkChooser.C b/cde/programs/dtinfo/dtinfo/src/Agents/MarkChooser.C index 96576c61..b676e33b 100644 --- a/cde/programs/dtinfo/dtinfo/src/Agents/MarkChooser.C +++ b/cde/programs/dtinfo/dtinfo/src/Agents/MarkChooser.C @@ -84,7 +84,8 @@ MarkChooser::MarkChooser (Widget parent, xList &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(); diff --git a/cde/programs/dtinfo/dtinfo/src/Agents/MarkListView.C b/cde/programs/dtinfo/dtinfo/src/Agents/MarkListView.C index 7be58310..a8c2d81e 100644 --- a/cde/programs/dtinfo/dtinfo/src/Agents/MarkListView.C +++ b/cde/programs/dtinfo/dtinfo/src/Agents/MarkListView.C @@ -82,7 +82,8 @@ MarkListView::MarkListView() : f_shell (NULL), - f_popped_up (FALSE) + f_popped_up (FALSE), + f_selected_item(0) { } diff --git a/cde/programs/dtinfo/dtinfo/src/Agents/MessageAgentMotif.hh b/cde/programs/dtinfo/dtinfo/src/Agents/MessageAgentMotif.hh index 506e329d..cf3417b6 100644 --- a/cde/programs/dtinfo/dtinfo/src/Agents/MessageAgentMotif.hh +++ b/cde/programs/dtinfo/dtinfo/src/Agents/MessageAgentMotif.hh @@ -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) { } diff --git a/cde/programs/dtinfo/dtinfo/src/Agents/NodeHistoryAgentMotif.hh b/cde/programs/dtinfo/dtinfo/src/Agents/NodeHistoryAgentMotif.hh index 2fbe757b..068c7f30 100644 --- a/cde/programs/dtinfo/dtinfo/src/Agents/NodeHistoryAgentMotif.hh +++ b/cde/programs/dtinfo/dtinfo/src/Agents/NodeHistoryAgentMotif.hh @@ -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(); diff --git a/cde/programs/dtinfo/dtinfo/src/Agents/NodeListAgentMotif.hh b/cde/programs/dtinfo/dtinfo/src/Agents/NodeListAgentMotif.hh index 0cf6575f..6a332374 100644 --- a/cde/programs/dtinfo/dtinfo/src/Agents/NodeListAgentMotif.hh +++ b/cde/programs/dtinfo/dtinfo/src/Agents/NodeListAgentMotif.hh @@ -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 (); diff --git a/cde/programs/dtinfo/dtinfo/src/Agents/NodePrintAgent.C b/cde/programs/dtinfo/dtinfo/src/Agents/NodePrintAgent.C index 5baff819..86fde791 100644 --- a/cde/programs/dtinfo/dtinfo/src/Agents/NodePrintAgent.C +++ b/cde/programs/dtinfo/dtinfo/src/Agents/NodePrintAgent.C @@ -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) { } diff --git a/cde/programs/dtinfo/dtinfo/src/Agents/NodeWindowAgentMotif.C b/cde/programs/dtinfo/dtinfo/src/Agents/NodeWindowAgentMotif.C index 60ad4846..7686e88d 100644 --- a/cde/programs/dtinfo/dtinfo/src/Agents/NodeWindowAgentMotif.C +++ b/cde/programs/dtinfo/dtinfo/src/Agents/NodeWindowAgentMotif.C @@ -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 *) this); diff --git a/cde/programs/dtinfo/dtinfo/src/Agents/PrefAgentMotif.C b/cde/programs/dtinfo/dtinfo/src/Agents/PrefAgentMotif.C index e5013271..0bff988b 100644 --- a/cde/programs/dtinfo/dtinfo/src/Agents/PrefAgentMotif.C +++ b/cde/programs/dtinfo/dtinfo/src/Agents/PrefAgentMotif.C @@ -259,7 +259,7 @@ public: PrefAgent::PrefAgent() -: f_shell(NULL) +: f_shell(NULL), f_top_panel(NULL), f_timeout(NULL) { } diff --git a/cde/programs/dtinfo/dtinfo/src/Agents/SearchResultsAgentMotif.hh b/cde/programs/dtinfo/dtinfo/src/Agents/SearchResultsAgentMotif.hh index 1b2fe58d..8d041d9c 100644 --- a/cde/programs/dtinfo/dtinfo/src/Agents/SearchResultsAgentMotif.hh +++ b/cde/programs/dtinfo/dtinfo/src/Agents/SearchResultsAgentMotif.hh @@ -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) { } diff --git a/cde/programs/dtinfo/dtinfo/src/Agents/UrlAgentMotif.C b/cde/programs/dtinfo/dtinfo/src/Agents/UrlAgentMotif.C index d7997b55..6a0f5683 100644 --- a/cde/programs/dtinfo/dtinfo/src/Agents/UrlAgentMotif.C +++ b/cde/programs/dtinfo/dtinfo/src/Agents/UrlAgentMotif.C @@ -77,6 +77,7 @@ extern char g_top_locator[]; UrlAgent::UrlAgent () { fShell = NULL; fPrefWindow = 0; + fPoppedUp = FALSE; } UrlAgent::~UrlAgent () { diff --git a/cde/programs/dtinfo/dtinfo/src/Managers/EnvMgr.C b/cde/programs/dtinfo/dtinfo/src/Managers/EnvMgr.C index 29ee396c..f0270907 100644 --- a/cde/programs/dtinfo/dtinfo/src/Managers/EnvMgr.C +++ b/cde/programs/dtinfo/dtinfo/src/Managers/EnvMgr.C @@ -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) diff --git a/cde/programs/dtinfo/dtinfo/src/Managers/GlobalHistoryMgr.hh b/cde/programs/dtinfo/dtinfo/src/Managers/GlobalHistoryMgr.hh index fa831fe8..b11a1296 100644 --- a/cde/programs/dtinfo/dtinfo/src/Managers/GlobalHistoryMgr.hh +++ b/cde/programs/dtinfo/dtinfo/src/Managers/GlobalHistoryMgr.hh @@ -70,7 +70,7 @@ struct HistoryDelete : public Destructable struct HistoryAdd : public Destructable { HistoryAdd (UAS_Pointer &node_ptr) - : f_new_entry(node_ptr) { } + : f_new_entry(node_ptr), f_moving(false) { } UAS_Pointer f_new_entry; // UAS_Pointer to UAS_Common displayed. bool f_moving; // True if a moved entry. diff --git a/cde/programs/dtinfo/dtinfo/src/Managers/GraphicsMgr.hh b/cde/programs/dtinfo/dtinfo/src/Managers/GraphicsMgr.hh index 2c09fbfc..c10d4076 100644 --- a/cde/programs/dtinfo/dtinfo/src/Managers/GraphicsMgr.hh +++ b/cde/programs/dtinfo/dtinfo/src/Managers/GraphicsMgr.hh @@ -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 () { diff --git a/cde/programs/dtinfo/dtinfo/src/Managers/LocalHistoryMgr.C b/cde/programs/dtinfo/dtinfo/src/Managers/LocalHistoryMgr.C index 379dad5a..81d60b0f 100644 --- a/cde/programs/dtinfo/dtinfo/src/Managers/LocalHistoryMgr.C +++ b/cde/programs/dtinfo/dtinfo/src/Managers/LocalHistoryMgr.C @@ -66,6 +66,7 @@ LocalHistoryMgr::LocalHistoryMgr() { f_current = NULL; + f_first = NULL; } diff --git a/cde/programs/dtinfo/dtinfo/src/Managers/LocalHistoryMgr.hh b/cde/programs/dtinfo/dtinfo/src/Managers/LocalHistoryMgr.hh index b396893c..89609c7c 100644 --- a/cde/programs/dtinfo/dtinfo/src/Managers/LocalHistoryMgr.hh +++ b/cde/programs/dtinfo/dtinfo/src/Managers/LocalHistoryMgr.hh @@ -33,7 +33,7 @@ class LocalHistoryEntry { private: // functions LocalHistoryEntry (UAS_Pointer &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(); diff --git a/cde/programs/dtinfo/dtinfo/src/Managers/WorkspaceMgr.C b/cde/programs/dtinfo/dtinfo/src/Managers/WorkspaceMgr.C index 0ca66382..a378e061 100644 --- a/cde/programs/dtinfo/dtinfo/src/Managers/WorkspaceMgr.C +++ b/cde/programs/dtinfo/dtinfo/src/Managers/WorkspaceMgr.C @@ -64,6 +64,8 @@ WorkspaceMgr::WorkspaceMgr() DtWsmAddCurrentWorkspaceCallback( window_system().toplevel(), (DtWsmWsChangeProc) PrimaryWorkspace_cb, this ); + + f_actual = 0; } diff --git a/cde/programs/dtinfo/dtinfo/src/OnlineRender/CanvasRenderer.C b/cde/programs/dtinfo/dtinfo/src/OnlineRender/CanvasRenderer.C index 4583f277..edd4bbae 100644 --- a/cde/programs/dtinfo/dtinfo/src/OnlineRender/CanvasRenderer.C +++ b/cde/programs/dtinfo/dtinfo/src/OnlineRender/CanvasRenderer.C @@ -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++) diff --git a/cde/programs/dtinfo/dtinfo/src/Other/AppPrintData.C b/cde/programs/dtinfo/dtinfo/src/Other/AppPrintData.C index 2acfcf7e..e0a3d0e6 100644 --- a/cde/programs/dtinfo/dtinfo/src/Other/AppPrintData.C +++ b/cde/programs/dtinfo/dtinfo/src/Other/AppPrintData.C @@ -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 ---------------------------------- diff --git a/cde/programs/dtinfo/dtinfo/src/Other/WindowSystemMotif.C b/cde/programs/dtinfo/dtinfo/src/Other/WindowSystemMotif.C index b12d99ff..4f7c90f4 100644 --- a/cde/programs/dtinfo/dtinfo/src/Other/WindowSystemMotif.C +++ b/cde/programs/dtinfo/dtinfo/src/Other/WindowSystemMotif.C @@ -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; diff --git a/cde/programs/dtinfo/dtinfo/src/Query/QueryEditor.C b/cde/programs/dtinfo/dtinfo/src/Query/QueryEditor.C index 60ffb597..1c86127f 100644 --- a/cde/programs/dtinfo/dtinfo/src/Query/QueryEditor.C +++ b/cde/programs/dtinfo/dtinfo/src/Query/QueryEditor.C @@ -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; diff --git a/cde/programs/dtinfo/dtinfo/src/UAS/Base/UAS_BookcaseEntry.C b/cde/programs/dtinfo/dtinfo/src/UAS/Base/UAS_BookcaseEntry.C index 2ac39915..f628fb0b 100644 --- a/cde/programs/dtinfo/dtinfo/src/UAS/Base/UAS_BookcaseEntry.C +++ b/cde/programs/dtinfo/dtinfo/src/UAS/Base/UAS_BookcaseEntry.C @@ -52,7 +52,8 @@ UAS_BookcaseEntry::UAS_BookcaseEntry(UAS_Pointer &bookcase, int searchable) : f_searchable(searchable), f_name(0), - f_base_num(-1) + f_base_num(-1), + f_infolib_num(0) { int len; diff --git a/cde/programs/dtinfo/dtinfo/src/UAS/DtSR/Tml_TextRenderer.C b/cde/programs/dtinfo/dtinfo/src/UAS/DtSR/Tml_TextRenderer.C index 3e559b7b..bbc1f6f1 100644 --- a/cde/programs/dtinfo/dtinfo/src/UAS/DtSR/Tml_TextRenderer.C +++ b/cde/programs/dtinfo/dtinfo/src/UAS/DtSR/Tml_TextRenderer.C @@ -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) { } diff --git a/cde/programs/dtinfo/dtinfo/src/UAS/DtSR/Util_Classes/DictLink.hh b/cde/programs/dtinfo/dtinfo/src/UAS/DtSR/Util_Classes/DictLink.hh index 8b4347a9..127a4691 100644 --- a/cde/programs/dtinfo/dtinfo/src/UAS/DtSR/Util_Classes/DictLink.hh +++ b/cde/programs/dtinfo/dtinfo/src/UAS/DtSR/Util_Classes/DictLink.hh @@ -17,7 +17,7 @@ template class DictLink DictLink* pre; DictLink* 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 }; diff --git a/cde/programs/dtinfo/dtinfogen/infolib/etc/BookTasks.C b/cde/programs/dtinfo/dtinfogen/infolib/etc/BookTasks.C index 8cc4393b..7fffc32d 100644 --- a/cde/programs/dtinfo/dtinfogen/infolib/etc/BookTasks.C +++ b/cde/programs/dtinfo/dtinfogen/infolib/etc/BookTasks.C @@ -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; } diff --git a/cde/programs/dtinfo/dtinfogen/infolib/etc/DataRepository.h b/cde/programs/dtinfo/dtinfogen/infolib/etc/DataRepository.h index d86e2023..b7247145 100644 --- a/cde/programs/dtinfo/dtinfogen/infolib/etc/DataRepository.h +++ b/cde/programs/dtinfo/dtinfogen/infolib/etc/DataRepository.h @@ -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 ) { diff --git a/cde/programs/dtinfo/dtinfogen/infolib/etc/FirstOf.C b/cde/programs/dtinfo/dtinfogen/infolib/etc/FirstOf.C index 0518f39c..48c445e4 100644 --- a/cde/programs/dtinfo/dtinfogen/infolib/etc/FirstOf.C +++ b/cde/programs/dtinfo/dtinfogen/infolib/etc/FirstOf.C @@ -90,6 +90,8 @@ FirstOf::FirstOf( const Token &t, } } + + elist = NULL; } //-------------------------------------------------------------------------- diff --git a/cde/programs/dtinfo/dtinfogen/infolib/etc/NodeData.C b/cde/programs/dtinfo/dtinfogen/infolib/etc/NodeData.C index d8120a9c..313952e2 100644 --- a/cde/programs/dtinfo/dtinfogen/infolib/etc/NodeData.C +++ b/cde/programs/dtinfo/dtinfogen/infolib/etc/NodeData.C @@ -269,6 +269,8 @@ NodeData::NodeData( NodeTask *parent, const Token &t) #endif write_start_tag ( t, NodeBuffer ); + + internal_buffer = NULL; } //--------------------------------------------------------------------- diff --git a/cde/programs/dtinfo/dtinfogen/infolib/etc/StyleTask.C b/cde/programs/dtinfo/dtinfogen/infolib/etc/StyleTask.C index 6970bcf0..0089b755 100644 --- a/cde/programs/dtinfo/dtinfogen/infolib/etc/StyleTask.C +++ b/cde/programs/dtinfo/dtinfogen/infolib/etc/StyleTask.C @@ -78,6 +78,7 @@ StyleTask::StyleTask() f_buffer = NULL; f_pathbuf = NULL; f_locator = NULL; + f_dataMode = inPath; feature_depth = new Stack; diff --git a/cde/programs/dtinfo/dtinfogen/infolib/etc/Token.C b/cde/programs/dtinfo/dtinfogen/infolib/etc/Token.C index 4aa9ab38..086ab272 100644 --- a/cde/programs/dtinfo/dtinfogen/infolib/etc/Token.C +++ b/cde/programs/dtinfo/dtinfogen/infolib/etc/Token.C @@ -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;