]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
supp_pattEQinp: initialise a variable that gcc 7.3.1 + LTO thinks might be used unini...
authorJulian Seward <jseward@acm.org>
Sun, 19 Aug 2018 07:13:30 +0000 (09:13 +0200)
committerJulian Seward <jseward@acm.org>
Sun, 19 Aug 2018 07:13:30 +0000 (09:13 +0200)
coregrind/m_errormgr.c

index ebc947d9845a86917b9995cf0058cc7869e08108..5dc17252004fa7d952cdcae0df6ce37b56aca49e 100644 (file)
@@ -1829,7 +1829,7 @@ static Bool supp_pattEQinp ( const void* supplocV, const void* addrV,
    const SuppLoc* supploc = (const SuppLoc*)supplocV; /* PATTERN */
    IPtoFunOrObjCompleter* ip2fo = (IPtoFunOrObjCompleter*)inputCompleterV;
    const HChar* funobjsrc_name; // Fun, Obj, or src file name.
-   UInt src_lineno;
+   UInt src_lineno = 0;
    Bool ret;
 
    expandInput(ip2fo, ixInput);