]> sourceware.org Git - systemtap.git/commitdiff
stapregex -- placate the gods of coverity (UNINIT_CTOR)
authorSerguei Makarov <smakarov@redhat.com>
Fri, 26 Jul 2013 19:35:47 +0000 (15:35 -0400)
committerSerguei Makarov <smakarov@redhat.com>
Fri, 26 Jul 2013 19:41:15 +0000 (15:41 -0400)
session.cxx
stapregex-dfa.cxx
stapregex-parse.cxx
stapregex-parse.h

index e23a4f9f8d7b7775fffbe61bdc6da4725a039310..0a15b9fa2d3fccf71c867f2cc06f1312bbcf1128 100644 (file)
@@ -248,6 +248,7 @@ systemtap_session::systemtap_session (const systemtap_session& other,
   pattern_root(new match_node),
   user_file (other.user_file),
   dfa_counter(0),
+  need_tagged_dfa(other.need_tagged_dfa),
   be_derived_probes(0),
   dwarf_derived_probes(0),
   kprobe_derived_probes(0),
index 7d5ddddcc9b810493f94e76057d890138aa700a9..0e5deb2d90889229b9a7db85e5364d8d8c20d1bf 100644 (file)
@@ -149,7 +149,7 @@ arc_compare (const arc_priority& a, const arc_priority& b)
 /* Manage the linked list of states in a DFA: */
 
 state::state (state_kernel *kernel)
-  : next(NULL), kernel(kernel), accepts(false), accept_outcome(0) {}
+  : label(~0), next(NULL), kernel(kernel), accepts(false), accept_outcome(0) {}
 
 state *
 dfa::add_state (state *s)
index d1eddc9a22e7636d3a49539287c225a4463dd005..cca2488789f6a08a566a907243605e216164ec8e 100644 (file)
@@ -145,10 +145,11 @@ void print_escaped(std::ostream& o, char c)
 
 // ------------------------------------------------------------------------
 
-cursor::cursor() : input(NULL), pos(~0) {}
+cursor::cursor() : input(NULL), pos(~0),
+                   last_pos(~0), next_c(0), last_c(0) {}
 
 cursor::cursor(const std::string *input, bool do_unescape)
-  : input(input), do_unescape(do_unescape), pos(0)
+  : input(input), do_unescape(do_unescape), pos(0), last_pos(0)
 {
   next_c = 0; last_c = 0;
   finished = ( pos >= input->length() );
index 69a3e94e32064f7da19c2877c26979b7d40d33b3..1d91b6f687cd0836eb26f9bcad5e7bafcd9c0430 100644 (file)
@@ -48,7 +48,8 @@ private:
 class regex_parser {
 public:
   regex_parser (const std::string& input, bool do_unescape = true) 
-    : input(input), do_unescape(do_unescape) {}
+    : input(input), do_unescape(do_unescape),
+      do_tag(false), num_tags(~0) {}
   regexp *parse (bool do_tag = true);
 
 private:
This page took 0.036608 seconds and 5 git commands to generate.