projects
/
profile
/
tv
/
apps
/
native
/
screen-reader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
369beb8
)
Crash fix
author
Patryk Kaczmarek
<patryk.k@samsung.com>
Wed, 10 Jun 2015 11:37:01 +0000
(13:37 +0200)
committer
Lukasz Stanislawski
<l.stanislaws@samsung.com>
Thu, 11 Jun 2015 12:44:52 +0000
(21:44 +0900)
* Screen reader was crashing on launch beacuse of NULL value passed to strncmp function
Change-Id: I6723f342e3427c636b9aa42e32c06615101de9cd
Signed-off-by: Patryk Kaczmarek <patryk.k@samsung.com>
src/screen_reader_vconf.c
patch
|
blob
|
history
diff --git
a/src/screen_reader_vconf.c
b/src/screen_reader_vconf.c
index
b13186a
..
0427651
100644
(file)
--- a/
src/screen_reader_vconf.c
+++ b/
src/screen_reader_vconf.c
@@
-23,6
+23,9
@@
bool set_langauge(Service_Data *sd, const char *new_language, int new_voice)
Eina_List *l;
Voice_Info *vi;
+ if (!sd->language || !new_language)
+ return false;
+
if(strncmp(sd->language, new_language, LAN_NAME - 1) == 0 && sd->voice_type == new_voice)
{
DEBUG("No need to change accessibility language: %s(%d) -> %s(%d)",