Fix WriterBackend::WriterInfo serialization, reenable ascii start/end tags.

Instantiations of WriterInfo in RemoteSerializer::ProcessLogCreateWriter()
would leave the network_time member uninitialized which could later
cause localtime_r() calls in Ascii::Timestamp() to return a null pointer
due to the bizarre input and giving that to strftime() causes it to segfault.
This commit is contained in:
Jon Siwek 2012-07-23 16:47:44 -05:00
parent f2e60a76a8
commit 9b0fe744f2
3 changed files with 5 additions and 10 deletions

View file

@ -81,9 +81,9 @@ public:
*/
config_map config;
WriterInfo()
WriterInfo() : path(0), rotation_interval(0.0), rotation_base(0.0),
network_time(0.0)
{
path = 0;
}
WriterInfo(const WriterInfo& other)