Fix get_active_config output value 14/186814/1
authorMichal Bloch <m.bloch@samsung.com>
Tue, 14 Aug 2018 13:49:14 +0000 (15:49 +0200)
committerMichal Bloch <m.bloch@samsung.com>
Tue, 14 Aug 2018 13:49:42 +0000 (15:49 +0200)
Change-Id: I99217ea37d0783774b97a62cabe1fb3f43adaf79
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/usb_host.c

index 7c02bf320040d9dca380175bcd5c9f86ce87433f..410acc4d0f68268d4354373ade58b626e2c925b2 100755 (executable)
@@ -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;
        }