Pārlūkot izejas kodu

syslog: drop useless variable initialization

Sergey Alirzaev 4 gadi atpakaļ
vecāks
revīzija
e1de9b1fea
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      modules/syslog.c

+ 1 - 1
modules/syslog.c

@@ -50,7 +50,7 @@ void syslog_str(char *msg)
 	struct pbuf* psend;
 	// TODO to reduce memory consumption one can use a scatter-gather I/O instead of packet[]
 	//char packet[256]; // arbitrary length; "Any transport receiver MUST be able to accept messages of up to and including 480 octets in length."
-	char timestamp[30] = "-";
+	char timestamp[30];
 	timestamp_rfc3339(timestamp);
 	unsigned len = snprintf(packet, sizeof(packet), "<%u>" SYSLOG_VERSION " %s - " HW_REV "_" VERSION " - - - " BOM "%s", priority, timestamp, msg);
 	//psend = pbuf_alloc(PBUF_RAW, sizeof(packet), PBUF_REF);