hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=0647f6877078561d425bac8195a41b9adb927b35

commit 0647f6877078561d425bac8195a41b9adb927b35
Author: ChunEon Park <her...@hermet.pe.kr>
Date:   Sat Aug 29 16:46:22 2015 +0900

    ecore win32: modifiy to better meaningful exception.
---
 src/lib/ecore/ecore_exe_win32.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/lib/ecore/ecore_exe_win32.c b/src/lib/ecore/ecore_exe_win32.c
index 7da75fd..6e6226c 100644
--- a/src/lib/ecore/ecore_exe_win32.c
+++ b/src/lib/ecore/ecore_exe_win32.c
@@ -376,6 +376,8 @@ _impl_ecore_exe_eo_base_finalize(Eo *obj, Ecore_Exe_Data 
*exe)
    DBG("Creating process %s", exe_cmd);
    Ecore_Exe_Flags flags = exe->flags;
 
+   if (!exe_cmd) goto error;
+
    if ((flags & ECORE_EXE_PIPE_AUTO) && (!(flags & ECORE_EXE_PIPE_ERROR))
        && (!(flags & ECORE_EXE_PIPE_READ)))
      /* We need something to auto pipe. */
@@ -411,9 +413,6 @@ _impl_ecore_exe_eo_base_finalize(Eo *obj, Ecore_Exe_Data 
*exe)
           exe_cmd_buf[sizeof(exe_cmd_buf) - 1] = '\0';
      }
 
-   if (!exe->cmd)
-     goto error;
-
    /* stdout, stderr and stdin pipes */
 
    sa.nLength = sizeof(SECURITY_ATTRIBUTES);

-- 


Reply via email to