Datetime: Prevent null pointer reference. 55/144855/2
authorWoochan Lee <wc0917.lee@samsung.com>
Fri, 18 Aug 2017 07:02:49 +0000 (16:02 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Fri, 18 Aug 2017 07:26:36 +0000 (07:26 +0000)
commit47539a6ba1c660d9a3fd175d1f2c727b4c238c4f
treeb387f756fb44d386733912ed94fffd0d0786acd8
parent1a0576a87ec4d5ea7568e6fa58a7c7a66ab0d636
Datetime: Prevent null pointer reference.

When _elm_datetime_items_get() calling with only time format after datetime creation.
The location has been swapped. so some of sorted_field index address gets a invalid
address. then it makes a crash.

@tizen_fix

Change-Id: I8e073237793d6af46a726be6cd51827f14c15661
src/lib/elm_datetime.c