From: Mathias K Date: Thu, 15 Dec 2011 16:43:23 +0000 (+0100) Subject: Initialize return value. X-Git-Tag: v0.6.0-rc1~368 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=886ea0b9148381eefc148aeb4d7c6d63894e494b;p=openocd Initialize return value. 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 --- 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);