mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Add missing return value.
This commit is contained in:
parent
56dc7c4e0a
commit
84fcf24fa3
@ -153,7 +153,7 @@ void StackTrace::Print(ostream& fp, int ignoreFrames) const
|
||||
line.SizeOfStruct = sizeof(IMAGEHLP_LINE64);
|
||||
|
||||
fp << "\t(" << i - ignoreFrames - 1 << ") ";
|
||||
|
||||
|
||||
if (SymGetLineFromAddr64(GetCurrentProcess(), dwAddress, &dwDisplacement, &line))
|
||||
fp << line.FileName << ":" << line.LineNumber;
|
||||
else
|
||||
@ -174,5 +174,6 @@ void StackTrace::Print(ostream& fp, int ignoreFrames) const
|
||||
ostream& icinga::operator<<(ostream& stream, const StackTrace& trace)
|
||||
{
|
||||
trace.Print(stream, 1);
|
||||
}
|
||||
|
||||
return stream;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user