Fix issue detected by static analysis tool 82/139082/1 accepted/tizen/unified/20170720.062156 submit/tizen/20170720.014256
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 17 Jul 2017 07:50:05 +0000 (16:50 +0900)
committerJihoon 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

index 413383e..1e8d9a7 100755 (executable)
@@ -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;