diff options
author | Prashanth Pai <ppai@redhat.com> | 2015-12-08 16:28:39 +0530 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2016-02-23 04:48:46 -0800 |
commit | 9950884e280e393c2c1bdab189ea3aa1716599e8 (patch) | |
tree | b58462c71a64d89ba9994836d1c00b0a1253df17 /api | |
parent | a4f509964acf3eff857a32186afc23745054beb4 (diff) |
api: Fix errno being set to EINVAL even on success
BUG: 1296007
Change-Id: I7905ac70a537f23e1844c097a24eaa6cb762fb82
Signed-off-by: Prashanth Pai <ppai@redhat.com>
Reviewed-on: http://review.gluster.org/12909
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: jiffin tony Thottan <jthottan@redhat.com>
Reviewed-by: Kaushal M <kaushal@redhat.com>
Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com>
Reviewed-on: http://review.gluster.org/13179
Smoke: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'api')
-rw-r--r-- | api/src/glfs-internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/src/glfs-internal.h b/api/src/glfs-internal.h index 1c308dfb0dc..dbf17918888 100644 --- a/api/src/glfs-internal.h +++ b/api/src/glfs-internal.h @@ -119,6 +119,8 @@ if (ret < 0) { \ errno = -ret; \ ret = -1; \ + } else { \ + errno = 0; \ } \ } while (0) |