From: Eric Bollengier Date: Fri, 1 May 2020 17:54:57 +0000 (+0200) Subject: Fix events scan function X-Git-Tag: Release-11.3.2~1585 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c23cd349b142bfd1f27ef141b52cf9b19749120;p=thirdparty%2Fbacula.git Fix events scan function --- diff --git a/bacula/src/lib/events.h b/bacula/src/lib/events.h index 485cf29baa..756ad9db2f 100644 --- a/bacula/src/lib/events.h +++ b/bacula/src/lib/events.h @@ -24,10 +24,10 @@ /* Events record -- same format as database */ class EVENTS_DBR: public SMARTALLOC { public: - EVENTS_DBR(): EventsId(0), EventsTime(0), EventsRef(0), EventsDaemon(""), EventsType(""), - EventsSource(""), EventsCode(""), EventsText(NULL), limit(100), order(0), - start(""), end("") - {}; + EVENTS_DBR(): EventsId(0), EventsTime(0), EventsRef(0), EventsText(NULL), limit(100), order(0) + { + *EventsDaemon = *EventsType = *EventsSource = *EventsCode = *start = *end = 0; + }; ~EVENTS_DBR() { bfree_and_null(EventsText); }; bool scan_line(const char *line);