diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2011-12-19 22:10:38 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-12-22 05:14:40 -0800 |
commit | 5ccbfdd87bebbc4c65a76c72191ac564ff844df8 (patch) | |
tree | ada42622747d9772af6128764c1d87ca0839d7da /libglusterfs/src | |
parent | bddb3a014af22133d958da96ad32a02f8ff66805 (diff) |
libglusterfs: set inode path to be NULL in case of errors
Some of the functions calling inode_path, __inode_path
are assuming the path to be set to NULL in case of errors.
Instead of fixing it in the calling functions, fixing it in
the __inode_path function.
Change-Id: I77736a2700d3c2c9732a536bcf2a398fe626d54e
BUG: 765430
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Reviewed-on: http://review.gluster.com/810
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'libglusterfs/src')
-rw-r--r-- | libglusterfs/src/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/inode.c b/libglusterfs/src/inode.c index 1f9da30c4..3513691c4 100644 --- a/libglusterfs/src/inode.c +++ b/libglusterfs/src/inode.c @@ -1079,6 +1079,8 @@ out: } } + if (ret < 0) + *bufp = NULL; return ret; } |