exactness: make sure we handle a negative file descriptor
authorStefan Schmidt <s.schmidt@samsung.com>
Fri, 17 Apr 2020 13:23:44 +0000 (15:23 +0200)
committerJongmin Lee <jm105.lee@samsung.com>
Mon, 20 Apr 2020 21:11:28 +0000 (06:11 +0900)
commit945b8850c34a51d328754e14f830fc8f4b1fe6b0
tree3bb1a23dd71af8c36d03e426e9bdfa2528645e77
parentf39e20e2634ad56ef81775e636d70f7a1b386d63
exactness: make sure we handle a negative file descriptor

In an error case the fd could be negative here and we should check
before feeding it into fdopen(). This is the same patch we used in
recorder.c

CID: 1422194

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D11728
src/bin/exactness/player.c