Fix issues shown by cppcheck for wrt-plugins-common
[platform/framework/web/wrt-plugins-common.git] / src / wrt-popup / ace / popup-runner / popup-runner.cpp
index 6bd34c4..e46fc16 100644 (file)
@@ -251,10 +251,11 @@ ace_return_t run_popup(
         int count;
         count = TEMP_FAILURE_RETRY(read(fd_send_to_parent[0], result, buff_size));
         close(fd_send_to_parent[0]); // cleanup
-        int validation_result_int;
+
 
         if (0 < count) {
             BinaryStream stream_in;
+            int validation_result_int;
             stream_in.Write(count, result);
             LogDebug("RESULT FROM POPUP (CHILD) : [ " << count << " ]");
             DPL::Deserialization::Deserialize(stream_in, validation_result_int);