forked from enlightenment/efl
Check for valid string before trying to write (potentially NULL) to
the pipe. NB: Fixes Coverity CID1039398 Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
1d9a19f1ee
commit
6e49578cb7
|
@ -108,6 +108,8 @@ _player_send_str(Emotion_Generic_Video *ev, const char *str, Eina_Bool stringsha
|
|||
len = str ? eina_stringshare_strlen(str) + 1 : 0;
|
||||
else
|
||||
len = str ? strlen(str) + 1 : 0;
|
||||
|
||||
if (str)
|
||||
ecore_pipe_write(ev->fd_write, str, len);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue