Fix -Wuninitialized warnings.
[deliverable/binutils-gdb.git] / gdb / gdbtypes.c
index d9f6e0e1ed4eee5a1cc466ac4854ee886dfc72fa..c54d4726c35582d90870f7b2c1cdfdd5d1edb67e 100644 (file)
@@ -1986,6 +1986,8 @@ count_virtual_fns (struct type *dclass)
   struct type *pbc = primary_base_class (dclass);
   if (pbc)
     vfuncs = count_virtual_fns (pbc);
+  else
+    vfuncs = 0;
 
   for (fn = 0; fn < TYPE_NFN_FIELDS (dclass); fn++)
     for (oi = 0; oi < TYPE_FN_FIELDLIST_LENGTH (dclass, fn); oi++)
This page took 0.024667 seconds and 4 git commands to generate.