From 8ee886a5cc3f13aaf52251a802eb7e3c3e37f9c7 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Fri, 9 Dec 2016 01:08:04 +0000 Subject: Don't log device_data_len in the code where it may be uninitialized Log device_data_len only in the code that reads it. --- sesman/chansrv/devredir.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sesman/chansrv/devredir.c') diff --git a/sesman/chansrv/devredir.c b/sesman/chansrv/devredir.c index 3dd74340..a8377e7d 100644 --- a/sesman/chansrv/devredir.c +++ b/sesman/chansrv/devredir.c @@ -699,9 +699,8 @@ void devredir_proc_client_devlist_announce_req(struct stream *s) /* for smart cards, device data len always 0 */ - log_debug("device_type=SMARTCARD device_id=0x%x dosname=%s " - "device_data_len=%d", - g_device_id, preferred_dos_name, device_data_len); + log_debug("device_type=SMARTCARD device_id=0x%x dosname=%s", + g_device_id, preferred_dos_name); devredir_send_server_device_announce_resp(g_device_id); scard_device_announce(g_device_id); -- cgit v1.2.1