Return error for aul_window_focused_pid(NULL) 51/162051/1
authorJayadeep Karnati <jayadeep.k@samsung.com>
Tue, 28 Nov 2017 11:07:29 +0000 (16:37 +0530)
committerHwanKyu Jhun <h.jhun@samsung.com>
Tue, 28 Nov 2017 23:18:02 +0000 (23:18 +0000)
commitfcf96f5a8e25fe2642b4269727313a5f25fbe7cb
tree23fb3cfb49d28848bdc4f1a69b912ecf36c05d42
parent305f0714e7a026934a93d488cee26754a6e1dfab
Return error for aul_window_focused_pid(NULL)

If NULL is passed as pid address, the caller app crashes.
This check returns error instead of crashing.

Change-Id: I8e48a0951e572e1ba8c3bba7ce5b0290c65aec28
Signed-off-by: Jayadeep Karnati <jayadeep.k@samsung.com>
(cherry picked from commit 330df9a9492ae96b269cd06213dc4451bc20c4c2)
src/aul_window.c