log-create: fix listOnly variable

Variable was uninitialized.

For me, it was true on the target (AST2500) when compiling in yocto
environment and false when compiling on x86 with
g++ (GCC) 14.2.1 20240910

Change-Id: I271cda0ea74121989d82271607f25ea6d0718328
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/log_create_main.cpp b/log_create_main.cpp
index 9d6b569..cc3b09e 100644
--- a/log_create_main.cpp
+++ b/log_create_main.cpp
@@ -55,7 +55,7 @@
     std::string event{};
     auto event_option = app.add_option("event", event, "Event name");
 
-    bool listOnly;
+    bool listOnly = false;
     app.add_flag("-l,--list", listOnly, "List all events")
         ->excludes(event_option);