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)
commit2ad050a5bc91cdec252cfa151dc06289e31bc5c1
treeeed87ac9b34ff729d4067e591aec8a89d71330b6
parent60ff0a3c6e7bb93ec40475d81e914c8b93a037c6
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>
legacy/elementary/src/lib/elc_naviframe.c