Check new data ptr 71/114071/1
authoreonseok.lee <eonseok.lee@samsung.com>
Fri, 10 Feb 2017 01:59:31 +0000 (10:59 +0900)
committereonseok.lee <eonseok.lee@samsung.com>
Fri, 10 Feb 2017 01:59:31 +0000 (10:59 +0900)
[Model] tizen3.0
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A

[Problem] need to check input parameter
[Cause & Measure] add pa_assert
[Checking Method] N/A

[Team] MMFW
[Developer] eonseok.lee
[Solution company] Samsung
[Change Type] N/A

Change-Id: Id187f5b2d31c35536059c0acb0a588acfaf427ee

src/module-poweroff.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index a410940..b602da0
@@ -108,6 +108,8 @@ static pa_hook_result_t sink_input_new_cb(pa_core *core, pa_sink_input_new_data
     const char *vol_gain_type = NULL;
 
     pa_core_assert_ref(core);
+    pa_assert(new_data);
+    pa_assert(u);
 
     if (!u->is_poweroff)
         return PA_HOOK_OK;
@@ -123,7 +125,6 @@ static pa_hook_result_t sink_input_new_cb(pa_core *core, pa_sink_input_new_data
     return PA_HOOK_OK;
 }
 
-
 static DBusHandlerResult _dbus_filter_device_detect_handler(DBusConnection *c, DBusMessage *s, void *userdata) {
     struct userdata *u = (struct userdata *)userdata;
     int state = 0;