From 27967f8885c53b24f86f399b18954b733d6015fe Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Wed, 2 Dec 2020 10:10:21 +0000 Subject: [PATCH] Prevent possible unitialised use. --- client/sub_client_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/sub_client_output.c b/client/sub_client_output.c index 936cdec9..569e4798 100644 --- a/client/sub_client_output.c +++ b/client/sub_client_output.c @@ -437,7 +437,7 @@ static void formatted_print_str(const char *value, char align, int field_width, static void formatted_print_percent(const struct mosq_config *lcfg, const struct mosquitto_message *message, const mosquitto_property *properties, char format, char align, char pad, int field_width, int precision) { struct tm *ti = NULL; - long ns; + long ns = 0; char buf[100]; int rc; uint8_t i8value;