* ecore: fix error detection of ecore_pipe_add.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 6 Sep 2010 16:36:44 +0000 (16:36 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 6 Sep 2010 16:36:44 +0000 (16:36 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@51926 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore/ecore_thread.c

index d57eec6..8509874 100644 (file)
@@ -667,7 +667,7 @@ EAPI Ecore_Thread *ecore_long_run(Ecore_Thread_Heavy_Cb func_heavy,
    if (!pth) goto on_error;
 
    pth->p = ecore_pipe_add(_ecore_thread_handler, NULL);
-   if (pth->p) goto on_error;
+   if (!pth->p) goto on_error;
 
    if (pthread_create(&pth->thread, NULL, (void *) _ecore_thread_worker, pth) == 0)
      {