projects
/
platform
/
core
/
uifw
/
ise-engine-anthy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b40205e
)
Fix issue detected by static analysis tool
82/139082/1
accepted/tizen/unified/20170720.062156
submit/tizen/20170720.014256
author
Jihoon Kim
<jihoon48.kim@samsung.com>
Mon, 17 Jul 2017 07:50:05 +0000
(16:50 +0900)
committer
Jihoon Kim
<jihoon48.kim@samsung.com>
Mon, 17 Jul 2017 07:50:05 +0000
(16:50 +0900)
Expression 'epos >= 0' is always true.
Unsigned type value is always >= 0. scim_anthy_style_file.cpp:103
Change-Id: Ia32436a39f93d667d029a43172d0b19421c5c8af
src/scim_anthy_style_file.cpp
patch
|
blob
|
history
diff --git
a/src/scim_anthy_style_file.cpp
b/src/scim_anthy_style_file.cpp
index
413383e
..
1e8d9a7
100755
(executable)
--- a/
src/scim_anthy_style_file.cpp
+++ b/
src/scim_anthy_style_file.cpp
@@
-100,7
+100,7
@@
StyleLine::get_type (void)
spos++);
if (m_line.length() > 0) {
for (epos = m_line.length () - 1;
-
epos >= 0 &&
isspace (m_line[epos]);
+ isspace (m_line[epos]);
epos--);
} else {
epos = 0;