elc_naviframe: fix crash in strcmp, if text_set is NULL issue
authorShilpa Singh <shilpa.singh@samsung.com>
Sun, 4 Oct 2015 13:26:08 +0000 (15:26 +0200)
committerCedric BAIL <cedric@osg.samsung.com>
Sun, 4 Oct 2015 13:26:13 +0000 (15:26 +0200)
commit1634653bb3b56a6344660d6062ee8247a766f434
tree3befa10f37c755266c1f03e6fcd088efb8c8376c
parent49ec1ec570561a260b94eb98c1a73a217822ba8d
elc_naviframe: fix crash in strcmp, if text_set is NULL issue

Summary:
Issue: If text set is NULL to naviframe, crash happens in strcmp
Soln: Check for text if NULL,  before passing to strcmp

@fix

Test Plan:
//Pass the text as NULL
elm_object_part_text_set(nf, "title", NULL);

Reviewers: Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3052

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/elc_naviframe.c