From fe7227e906ea048b51acfbb4075c572ac24aa66b Mon Sep 17 00:00:00 2001 From: Michal Bloch Date: Tue, 14 Aug 2018 15:49:14 +0200 Subject: [PATCH] Fix get_active_config output value Change-Id: I99217ea37d0783774b97a62cabe1fb3f43adaf79 Signed-off-by: Michal Bloch --- src/usb_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usb_host.c b/src/usb_host.c index 7c02bf3..410acc4 100755 --- a/src/usb_host.c +++ b/src/usb_host.c @@ -883,7 +883,7 @@ int usb_host_get_active_config(usb_host_device_h dev, usb_host_config_h *config) /* unconfigured state */ if (cfg_nmb == 0) { - config = NULL; + *config = NULL; goto out; } -- 2.34.1