projects
/
platform
/
core
/
uifw
/
ise-default.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3425704
)
Check NULL before running strcmp()
40/178940/2
author
Ji-hoon Lee
<dalton.lee@samsung.com>
Tue, 15 May 2018 03:13:27 +0000
(12:13 +0900)
committer
Ji-hoon Lee
<dalton.lee@samsung.com>
Tue, 15 May 2018 03:18:28 +0000
(12:18 +0900)
Change-Id: I5a5fbcc0a71e7e1b56952a52150bb1a1a71dd6e1
src/ise.cpp
patch
|
blob
|
history
diff --git
a/src/ise.cpp
b/src/ise.cpp
index
6a6d877
..
d6c4cff
100644
(file)
--- a/
src/ise.cpp
+++ b/
src/ise.cpp
@@
-1703,7
+1703,8
@@
ise_hide()
_reset_multitap_state(true);
/* If we were in STT mode, try to reset input mode on our next show event */
- if (g_ui && strcmp(g_ui->get_input_mode(), "STT_3X4") == 0 ) {
+ const char *inputmode = (g_ui ? g_ui->get_input_mode() : NULL);
+ if (g_ui && inputmode && strcmp(inputmode, "STT_3X4") == 0 ) {
g_keyboard_state.need_reset = TRUE;
ise_hide_stt_mode();
}