From: Divya Yadav Date: Tue, 19 Mar 2013 12:22:47 +0000 (+0530) Subject: Klocwork issue: NULL variable dereference X-Git-Tag: 2.1b_release~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f92c7ab4f8564598b90224b19b08a0f2aa841d2;p=framework%2Fconnectivity%2Fbluetooth-frwk.git Klocwork issue: NULL variable dereference Change-Id: I132e6a2bfea560fc233b12073e09b7720374a907 --- diff --git a/bt-service/bt-service-audio.c b/bt-service/bt-service-audio.c index 477438a..d137611 100644 --- a/bt-service/bt-service-audio.c +++ b/bt-service/bt-service-audio.c @@ -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;