tools/xenalyze: Fix check for error return value
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Thu, 25 Feb 2016 14:49:00 +0000 (14:49 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 29 Feb 2016 16:12:49 +0000 (11:12 -0500)
commit1065622448c1cc5a10425914f02708750046b17e
treee9210ba095ce95f541de1fcb52ab4f8908f768ab
parent794beca91840fb8519113d40887459d20ec63f68
tools/xenalyze: Fix check for error return value

fdopen returns NULL on failure, not a negative integer.

CID 1306863
CID 1306858

Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/xentrace/xenalyze.c