2010-07-09 Bharath Suri <bharath.s.jois@gmail.com>

* libfs/src/pipe/pipe.c: Check for err before setting the errno
	and returning -1 to the caller.
This commit is contained in:
Joel Sherrill
2010-07-09 18:39:36 +00:00
parent 843ad7b5ff
commit 18bd1bd4dd
2 changed files with 8 additions and 2 deletions

View File

@@ -72,7 +72,8 @@ int pipe_create(
}
unlink(fifopath);
}
rtems_set_errno_and_return_minus_one(err);
if(err != 0)
rtems_set_errno_and_return_minus_one(err);
return 0;
}