summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-04-24 15:13:57 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-04-24 15:13:57 +0900
commit4917910b4911905236fa099bbc16b833b056ca07 (patch)
tree9a64a66ed88ed543532c8d5b6ad703e99cfd7d1c /src
parent3e3462f0d35684e581ff78acfa871a60ff630bae (diff)
ecore pipe - fix windows to not segv on zero data in pipe there
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore/ecore_pipe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore_pipe.c b/src/lib/ecore/ecore_pipe.c
index 92127b95d0..f9aa62655a 100644
--- a/src/lib/ecore/ecore_pipe.c
+++ b/src/lib/ecore/ecore_pipe.c
@@ -591,6 +591,11 @@ _ecore_pipe_handler_call(Ecore_Pipe *p,
591 unsigned char *buf, 591 unsigned char *buf,
592 size_t len) 592 size_t len)
593{ 593{
594 // on windows we seem to get a pipe wake with no data. don't pass on
595 // zero data as there is nothing useful to do with it... and it causes
596 // segfaults
597 if ((!buf) || (!len)) return;
598
594 void *data = (void*) p->data; 599 void *data = (void*) p->data;
595 600
596 // clear all values of pipe first. 601 // clear all values of pipe first.