forked from Imagelibrary/rtems
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user