From abf3892c1a728229d052c4f1c8bda15f31b77cd0 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 20 Nov 2014 17:22:22 -0600 Subject: pipe/fifo.c: NULL dereference flagged by Coverity ID 1063889 It does not appear that this is possible so adding an assert. --- cpukit/libfs/src/pipe/fifo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpukit/libfs/src/pipe/fifo.c') diff --git a/cpukit/libfs/src/pipe/fifo.c b/cpukit/libfs/src/pipe/fifo.c index 203b65480a..91d95dc946 100644 --- a/cpukit/libfs/src/pipe/fifo.c +++ b/cpukit/libfs/src/pipe/fifo.c @@ -212,6 +212,7 @@ static int pipe_new( pipe_control_t *pipe; int err = 0; + _Assert( pipep ); err = pipe_lock(); if (err) return err; @@ -223,7 +224,7 @@ static int pipe_new( goto out; } - if (! PIPE_LOCK(pipe)) + if (!PIPE_LOCK(pipe)) err = -EINTR; if (*pipep == NULL) { -- cgit v1.2.3