Klocwork issue: NULL variable dereference
authorDivya Yadav <divya.yadav@samsung.com>
Tue, 19 Mar 2013 12:22:47 +0000 (17:52 +0530)
committerDibyendu Roy <dibyendu.roy@samsung.com>
Thu, 4 Apr 2013 07:02:00 +0000 (12:32 +0530)
Change-Id: I132e6a2bfea560fc233b12073e09b7720374a907

bt-service/bt-service-audio.c

index 477438a..d137611 100644 (file)
@@ -598,7 +598,8 @@ int _bt_audio_disconnect(int request_id, int type,
 
        return BLUETOOTH_ERROR_NONE;
 fail:
-       g_array_append_vals(*out_param1, address,
+       if (out_param1 != NULL)
+               g_array_append_vals(*out_param1, address,
                                BT_ADDRESS_STR_LEN);
 
        return result;