From 886ea0b9148381eefc148aeb4d7c6d63894e494b Mon Sep 17 00:00:00 2001 From: Mathias K Date: Thu, 15 Dec 2011 17:43:23 +0100 Subject: [PATCH] Initialize return value. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Because no future error checking we will initialize the pointer to a know value. Change-Id: I2466eeb413245a398927ec9f3742c2a9a3d51baf Signed-off-by: Mathias K Reviewed-on: http://openocd.zylin.com/283 Tested-by: jenkins Reviewed-by: Spencer Oliver Reviewed-by: Øyvind Harboe --- src/jtag/drivers/libusb1_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jtag/drivers/libusb1_common.c b/src/jtag/drivers/libusb1_common.c index c6cb4943..1aae10d3 100644 --- a/src/jtag/drivers/libusb1_common.c +++ b/src/jtag/drivers/libusb1_common.c @@ -105,7 +105,7 @@ int jtag_libusb_set_configuration(jtag_libusb_device_handle *devh, struct jtag_libusb_device *udev = jtag_libusb_get_device(devh); int retCode = -99; - struct libusb_config_descriptor *config; + struct libusb_config_descriptor *config = NULL; libusb_get_config_descriptor(udev, configuration, &config); retCode = libusb_set_configuration(devh, config->bConfigurationValue); -- 2.39.5