ticker: perfrom additional null-check 21/139121/1
authorLukasz Stanislawski <l.stanislaws@samsung.com>
Mon, 17 Jul 2017 10:27:42 +0000 (12:27 +0200)
committerLukasz Stanislawski <l.stanislaws@samsung.com>
Mon, 17 Jul 2017 10:27:42 +0000 (12:27 +0200)
commit3625413929aaf50c482fd4d95f3da51088ccd936
tree2322b895fe952999bf01943e7f957ed28b9c51a8
parent392bd27c0d56bc477d1177f50d153519b40ff4f1
ticker: perfrom additional null-check

Fix potential issue spotted by PVS-Studio static analyzer and
described on https://www.viva64.com/en/b/0519/.
The _ticker_view_create may call _ticker_window_create with
invalid parameter. This situation cannot occur in current
code since ad is always valid pointer.

However function may cause crashes when some refactoring
will be applied without additional null-checking of 'ad' param.

Change-Id: I409ce3774390f9fa67ed26b7b9a8c34c5a7c077e
src/ticker.c