projects
/
platform
/
upstream
/
libabigail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39f02b6
)
Fix an undefined behaviour in has_var_type_cv_qual_change
author
Mark Wielaard
<mark@klomp.org>
Thu, 18 Apr 2019 14:24:15 +0000
(16:24 +0200)
committer
Dodji 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
patch
|
blob
|
history
diff --git
a/src/abg-comp-filter.cc
b/src/abg-comp-filter.cc
index 9a278a387c60951f1c923d52906f1e39b4ea4ff5..1a1eb0d2862c6d61801c944c7b1bc8f9a0fc9bad 100644
(file)
--- a/
src/abg-comp-filter.cc
+++ b/
src/abg-comp-filter.cc
@@
-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;