summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2009-10-14 07:32:37 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-15 08:49:11 -0700
commit89b40ae93a09043e9d9384ce8c631d0c5abe6787 (patch)
tree278b51f09a27d3783337f47b8de768da1d72d490
parenta9364b0a56186a3203820aca69b9875266e4c5f6 (diff)
storage/posix: Initialize op_errno to 0 in posix_create.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> 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
-rw-r--r--xlators/storage/posix/src/posix.c2
1 files changed, 1 insertions, 1 deletions
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;