summaryrefslogtreecommitdiffstats
path: root/xlators/debug/io-stats/src
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/debug/io-stats/src')
-rw-r--r--xlators/debug/io-stats/src/io-stats.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/debug/io-stats/src/io-stats.c b/xlators/debug/io-stats/src/io-stats.c
index a46d1160038..9c3ca2d0a69 100644
--- a/xlators/debug/io-stats/src/io-stats.c
+++ b/xlators/debug/io-stats/src/io-stats.c
@@ -1018,8 +1018,9 @@ _resolve_group_name (xlator_t *this, gid_t gid)
goto err;
}
- getgrgid_r (gid, &grp, grp_buf, grp_buf_len,
- &grp_result);
+ if (getgrgid_r (gid, &grp, grp_buf, grp_buf_len, &grp_result) != 0)
+ goto err;
+
if (!grp_result)
goto err;