Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Silence codacy (initialize variable).
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 3 Aug 2017 20:51:34 +0000 (22:51 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 3 Aug 2017 21:04:16 +0000 (23:04 +0200)
teshsuite/mc/dwarf/dwarf.cpp

index 886d410..02c26ea 100644 (file)
@@ -153,7 +153,7 @@ int main(int argc, char** argv)
   int lexical_block_variable = 50;
   test_local_variable(process.binary_info.get(), "main", "lexical_block_variable", &lexical_block_variable, &cursor);
 
   int lexical_block_variable = 50;
   test_local_variable(process.binary_info.get(), "main", "lexical_block_variable", &lexical_block_variable, &cursor);
 
-  s_foo my_foo;
+  s_foo my_foo = {0};
   test_type_by_name(process, my_foo);
 
   _exit(0);
   test_type_by_name(process, my_foo);
 
   _exit(0);