diff options
author | Shehjar Tikoo <shehjart@zresearch.com> | 2009-04-21 04:50:33 -0700 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-22 13:06:31 +0530 |
commit | 07f1524165f864e09033b7f78e921c5375d4e2d6 (patch) | |
tree | 5cf891173e40578e23c41f53de4deb250d399085 /glusterfs-guts | |
parent | 27e1c9fbd3fb6eda4f7d64ff04dad9d306c237e7 (diff) |
posix: Ensure EINVAL return on NULL args
Initing op_errno to EINVAL ensures that this is the value
that gets returned on STACK_UNWIND, in case any of the VALIDATE macros
result in exit from "out" due to a NULL argument. If this is not done
, we get op_ret as -1 with errno set to 0 in the application's
syscall.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'glusterfs-guts')
0 files changed, 0 insertions, 0 deletions