From: Michal Bloch Date: Tue, 14 Aug 2018 13:49:14 +0000 (+0200) Subject: Fix get_active_config output value X-Git-Tag: submit/tizen/20180828.043212~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe7227e906ea048b51acfbb4075c572ac24aa66b;p=platform%2Fcore%2Fapi%2Fusb-host.git Fix get_active_config output value Change-Id: I99217ea37d0783774b97a62cabe1fb3f43adaf79 Signed-off-by: Michal Bloch --- 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; }