mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Fix 2 errors found by PVS studio
(see https://www.viva64.com/en/b/0504/ and bug 379502) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16379
This commit is contained in:
parent
81ba51146e
commit
54e6c1e1fd
@ -107,7 +107,7 @@ void reset_valgrind_sink(const char *info)
|
||||
&& initial_valgrind_sink_saved) {
|
||||
VG_(log_output_sink).fd = initial_valgrind_sink.fd;
|
||||
VG_(umsg) ("Reset valgrind output to log (%s)\n",
|
||||
(info = NULL ? "" : info));
|
||||
(info == NULL ? "" : info));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1011,7 +1011,7 @@ static void lk_fini(Int exitcode)
|
||||
VG_(umsg)("Jccs:\n");
|
||||
VG_(umsg)(" total: %'llu\n", total_Jccs);
|
||||
VG_(umsg)(" taken: %'llu (%.0f%%)\n",
|
||||
taken_Jccs, taken_Jccs * 100.0 / total_Jccs ?: 1);
|
||||
taken_Jccs, taken_Jccs * 100.0 / (total_Jccs ? total_Jccs : 1));
|
||||
|
||||
VG_(umsg)("\n");
|
||||
VG_(umsg)("Executed:\n");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user