* ecore: fix error detection of ecore_pipe_add.

SVN revision: 51926
This commit is contained in:
Cedric BAIL 2010-09-06 16:36:44 +00:00
parent ea791dccc5
commit d098e05951
1 changed files with 1 additions and 1 deletions

View 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)
{