comparison src/dumper.c @ 5840:93a18dbcfd8c

Don't leave fields uninitialized.
author Marcus Crestani <marcus@crestani.de>
date Sat, 13 Dec 2014 14:20:17 +0100
parents d139eb1fead8
children e2fae7783046
comparison
equal deleted inserted replaced
5839:d139eb1fead8 5840:93a18dbcfd8c
848 break; 848 break;
849 case XD_OPAQUE_PTR_CONVERTIBLE: 849 case XD_OPAQUE_PTR_CONVERTIBLE:
850 { 850 {
851 pdump_cv_ptr_info info; 851 pdump_cv_ptr_info info;
852 info.object = *(void **)rdata; 852 info.object = *(void **)rdata;
853 info.index = 0;
854 info.save_offset = 0;
853 info.fcts = desc1->data2.funcs; 855 info.fcts = desc1->data2.funcs;
854 if (!pdump_find_in_cv_ptr_dynarr (info.object)) 856 if (!pdump_find_in_cv_ptr_dynarr (info.object))
855 { 857 {
856 info.fcts->convert(info.object, &info.data, &info.size); 858 info.fcts->convert(info.object, &info.data, &info.size);
857 Dynarr_add (pdump_cv_ptr, info); 859 Dynarr_add (pdump_cv_ptr, info);
861 case XD_OPAQUE_DATA_CONVERTIBLE: 863 case XD_OPAQUE_DATA_CONVERTIBLE:
862 { 864 {
863 pdump_cv_data_info info; 865 pdump_cv_data_info info;
864 info.object = data; 866 info.object = data;
865 info.offset = offset; 867 info.offset = offset;
868 info.dest_offset = 0;
869 info.save_offset = 0;
866 info.fcts = desc1->data2.funcs; 870 info.fcts = desc1->data2.funcs;
867 871
868 info.fcts->convert(rdata, &info.data, &info.size); 872 info.fcts->convert(rdata, &info.data, &info.size);
869 Dynarr_add (pdump_cv_data, info); 873 Dynarr_add (pdump_cv_data, info);
870 break; 874 break;