]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix events scan function
authorEric Bollengier <eric@baculasystems.com>
Fri, 1 May 2020 17:54:57 +0000 (19:54 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 29 Apr 2021 08:44:18 +0000 (10:44 +0200)
bacula/src/lib/events.h

index 485cf29baaefcd3e6498ddff33d137eea8a2f4f6..756ad9db2fe952d2a6f8741103cadf2ae1fc1638 100644 (file)
 /* 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);