From d3ec258921cfcef7b053b5a2c866330d43dd3f03 Mon Sep 17 00:00:00 2001 From: Matthew Williams Date: Mon, 8 Nov 2021 16:08:04 -0800 Subject: Initialize local variables --- usb/usbview/uvcview.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usb/usbview/uvcview.c b/usb/usbview/uvcview.c index fb2e1f0c..ac5af7b6 100644 --- a/usb/usbview/uvcview.c +++ b/usb/usbview/uvcview.c @@ -803,7 +803,7 @@ CreateMainWindow ( int nCmdShow ) { - RECT rc; + RECT rc = { 0 }; InitCommonControls(); @@ -849,10 +849,10 @@ ResizeWindows ( int BarLocation ) { - RECT MainClientRect; - RECT MainWindowRect; - RECT TreeWindowRect; - RECT StatusWindowRect; + RECT MainClientRect = { 0 }; + RECT MainWindowRect = { 0 }; + RECT TreeWindowRect = { 0 }; + RECT StatusWindowRect = { 0 }; int right; // Is the user moving the bar? -- cgit v1.3.1