From: Julien Desfossez Date: Fri, 17 Aug 2012 11:57:53 +0000 (-0400) Subject: Fix: don't close the metadata FD if a FP is passed X-Git-Tag: v1.0.0-rc5~21 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=bcbfb8bf88ea9afbecd8a79708939fb8b79e5734;hp=bcbfb8bf88ea9afbecd8a79708939fb8b79e5734 Fix: don't close the metadata FD if a FP is passed In ctf_open_trace_metadata_read if the metadata_fp is passed we must not close the metadata_stream->pos.fd which is zero in this case. Signed-off-by: Julien Desfossez Signed-off-by: Mathieu Desnoyers ---