Commit 886ea0b9 authored by Mathias K's avatar Mathias K Committed by Spencer Oliver
Browse files

Initialize return value.



Because no future error checking we will initialize the pointer to
a know value.

Change-Id: I2466eeb413245a398927ec9f3742c2a9a3d51baf
Signed-off-by: default avatarMathias K <kesmtp@freenet.de>
Reviewed-on: http://openocd.zylin.com/283


Tested-by: jenkins
Reviewed-by: default avatarSpencer Oliver <spen@spen-soft.co.uk>
Reviewed-by: default avatarØyvind Harboe <oyvindharboe@gmail.com>
parent 667d510d
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment