diff options
author | Junaid <junaid@gluster.com> | 2011-04-12 05:06:03 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-04-12 21:50:05 -0700 |
commit | 1fd570380ba5def514ff42e81008a7ddd588348f (patch) | |
tree | db72f86b960449968d88e723cff0fa51d05d32ed /xlators/features/marker/src/marker-quota.h | |
parent | 9c26fbc70ab797eea7967bc77857e73eca9aeffe (diff) |
features/marker: Adding NULL checks.
Signed-off-by: Junaid <junaid@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2473 (Support for volume and directory level quota)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2473
Diffstat (limited to 'xlators/features/marker/src/marker-quota.h')
-rw-r--r-- | xlators/features/marker/src/marker-quota.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/marker/src/marker-quota.h b/xlators/features/marker/src/marker-quota.h index e709bcac23f..c6ca5bbabb1 100644 --- a/xlators/features/marker/src/marker-quota.h +++ b/xlators/features/marker/src/marker-quota.h @@ -51,6 +51,7 @@ char volname [40]; #define QUOTA_ALLOC(var, type, ret) \ do { \ + ret = 0; \ var = GF_CALLOC (sizeof (type), 1, \ gf_marker_mt_##type); \ if (!var) { \ @@ -58,7 +59,6 @@ char volname [40]; "out of memory"); \ ret = -1; \ } \ - ret = 0; \ } while (0); #define QUOTA_ALLOC_OR_GOTO(var, type, ret, label) \ |