blktrace: Check value of 'merge_buf' pointer before using it
authorBart Van Assche <bvanassche@acm.org>
Sun, 12 Jan 2020 00:10:42 +0000 (16:10 -0800)
committerBart Van Assche <bvanassche@acm.org>
Sun, 12 Jan 2020 02:17:37 +0000 (18:17 -0800)
commitc81ab051dd359a598414c04fcb010e959d2d5445
tree8ddb482a517fe0b0c21bafd6214dc1af8f9f29fc
parent874a61d067958c77100f9c994de133fdd70c566d
blktrace: Check value of 'merge_buf' pointer before using it

This patch fixes the following Coverity complaint:

CID 183976 (#1 of 1): Dereference null return value (NULL_RETURNS)
5. dereference: Dereferencing a pointer that might be null 'merge_fp' when calling 'setvbuf'.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
blktrace.c