From 89b40ae93a09043e9d9384ce8c631d0c5abe6787 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Wed, 14 Oct 2009 07:32:37 +0000 Subject: storage/posix: Initialize op_errno to 0 in posix_create. Signed-off-by: Anand V. Avati BUG: 309 (In replicate set-up when exnihilate.sh is run , client crashes.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=309 --- xlators/storage/posix/src/posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 6f9886af4..2d60ca4ea 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -1986,7 +1986,7 @@ posix_create (call_frame_t *frame, xlator_t *this, fd_t *fd) { int32_t op_ret = -1; - int32_t op_errno = EINVAL; + int32_t op_errno = 0; int32_t _fd = -1; int _flags = 0; char * real_path = NULL; -- cgit