From 57667dd95578b0b86c74bce98fb454f4be38c831 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Fri, 20 Dec 2024 10:19:04 +0100 Subject: [PATCH] [channels,printer] initialze variable --- channels/printer/client/cups/printer_cups.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/printer/client/cups/printer_cups.c b/channels/printer/client/cups/printer_cups.c index 76b418a85..fb28065f8 100644 --- a/channels/printer/client/cups/printer_cups.c +++ b/channels/printer/client/cups/printer_cups.c @@ -105,7 +105,7 @@ typedef struct static void printer_cups_get_printjob_name(char* buf, size_t size, size_t id) { - struct tm tres; + struct tm tres = { 0 }; const time_t tt = time(NULL); const struct tm* t = localtime_r(&tt, &tres);