Fix defects according to prevent report
authorHaifeng Deng <haifeng.deng@samsung.com>
Wed, 3 Apr 2013 02:22:15 +0000 (10:22 +0800)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 3 Apr 2013 06:44:49 +0000 (15:44 +0900)
Change-Id: I495d7d4d6d4d8f88901d1b5beb32c04a53a56ea8

ism/modules/frontend/scim_socket_frontend.cpp
ism/modules/imengine/scim_socket_imengine.cpp

index 9ceb919..c3e5ce4 100644 (file)
@@ -552,7 +552,8 @@ SocketFrontEnd::get_surrounding_text (int id, WideString &text, int &cursor, int
             m_send_trans.put_command (SCIM_TRANS_CMD_REPLY);
 
             // Move the read ptr to the end.
-            m_send_trans.get_command (cmd);
+            if (!m_send_trans.get_command (cmd))
+                SCIM_DEBUG_FRONTEND (1) << __func__ << " Get command is failed!!!\n";
         }
     }
     return ret;
@@ -596,7 +597,8 @@ SocketFrontEnd::delete_surrounding_text (int id, int offset, int len)
             m_send_trans.put_command (SCIM_TRANS_CMD_REPLY);
 
             // Move the read ptr to the end.
-            m_send_trans.get_command (cmd);
+            if (!m_send_trans.get_command (cmd))
+                SCIM_DEBUG_FRONTEND (1) << __func__ << " Get command is failed!!!\n";
         }
     }
     return ret;
index a2e43b4..a1b038e 100644 (file)
@@ -1228,6 +1228,7 @@ SocketInstance::do_transaction (Transaction &trans, bool &ret)
                 case ISM_TRANS_CMD_TRANSACTION_CONTINUE:
                 {
                     cont = true;
+                    break;
                 }
                 default:
                     SCIM_DEBUG_IMENGINE(3) << "  Strange cmd: " << cmd << "\n";