diff options
author | Li Xiaoming <lixm.fnst@cn.fujitsu.com> | 2019-08-26 21:29:31 +0800 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2019-08-28 14:51:50 +0000 |
commit | 392cad1a8dbfda836abf7f545e8ad46e100266e7 (patch) | |
tree | a9fbb227c7a0dea7278955d6887210d41d7e8f93 /app/app.pri | |
parent | b9b14dda5ed0e06c4b6e59512b1289ba81a4e765 (diff) |
tsrecorder.c:Fix return value check of read()
If read() fails, it returns -1.
It will generate unpredictable result when compare -1 and sizeof()'s
size_t(unsigned) value.
By the way, cast “ssize_t” to “size_t” to slience the warning.
Bug-AGL:SPEC-2422
Change-Id: Ib56c1ebbcaaac48600a6747d5cc013c407dc14dd
Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
(cherry picked from commit ee6c0cc56304467061f9a60f3f96d07d741f327f)
Diffstat (limited to 'app/app.pri')
0 files changed, 0 insertions, 0 deletions