]> sourceware.org Git - libabigail.git/commitdiff
Fix an undefined behaviour in has_var_type_cv_qual_change
authorMark Wielaard <mark@klomp.org>
Thu, 18 Apr 2019 14:24:15 +0000 (16:24 +0200)
committerDodji Seketeli <dodji@redhat.com>
Thu, 18 Apr 2019 14:24:15 +0000 (16:24 +0200)
* src/abg-comp-filter.cc: (has_var_type_cv_qual_change):
Initialize the ch_kind variable before using it.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-comp-filter.cc

index 9a278a387c60951f1c923d52906f1e39b4ea4ff5..1a1eb0d2862c6d61801c944c7b1bc8f9a0fc9bad 100644 (file)
@@ -1197,7 +1197,7 @@ has_var_type_cv_qual_change(const diff* dif)
 
   {
     // Make sure the variable diff does carry a type change at least
-    change_kind ch_kind;
+    change_kind ch_kind = NO_CHANGE_KIND;
     if (equals(*var_dif->first_var(), *var_dif->second_var(), &ch_kind))
       return false;
 
This page took 0.069497 seconds and 5 git commands to generate.