From c85d842c615b65da7f692cef36b5b9f51c62a0ca Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Wed, 23 Apr 2014 12:41:33 +0530 Subject: libgfapi: A minor bug-fix in glfs_h_setxattr and glfs_h_removexattr calls. Change-Id: I62f63da37edf722d6d79c75f72ee7403e93e4936 BUG: 1089414 Signed-off-by: Soumya Koduri Reviewed-on: http://review.gluster.org/7529 Reviewed-by: Santosh Pradhan Tested-by: Meghana M Reviewed-by: Humble Devassy Chirammal Reviewed-by: Pranith Kumar Karampuri Reviewed-by: Anand Avati --- api/src/glfs-handleops.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'api') diff --git a/api/src/glfs-handleops.c b/api/src/glfs-handleops.c index 7fb202973d1..f7ad454bf62 100644 --- a/api/src/glfs-handleops.c +++ b/api/src/glfs-handleops.c @@ -335,7 +335,8 @@ glfs_h_setxattrs (struct glfs *fs, struct glfs_object *object, const char *name, dict_t *xattr = NULL; /* validate in args */ - if ((fs == NULL) || (object == NULL) || (stat == NULL)) { + if ((fs == NULL) || (object == NULL) || + (name == NULL) || (value == NULL)) { errno = EINVAL; return -1; } @@ -391,7 +392,7 @@ glfs_h_removexattrs (struct glfs *fs, struct glfs_object *object, const char *na loc_t loc = {0, }; /* validate in args */ - if ((fs == NULL) || (object == NULL) || (stat == NULL)) { + if ((fs == NULL) || (object == NULL) || (name == NULL)) { errno = EINVAL; return -1; } -- cgit