summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/marker/utils/src/gsyncd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/marker/utils/src/gsyncd.c b/xlators/features/marker/utils/src/gsyncd.c
index 487eea1e557..3f4c2c4b38a 100644
--- a/xlators/features/marker/utils/src/gsyncd.c
+++ b/xlators/features/marker/utils/src/gsyncd.c
@@ -48,7 +48,7 @@ duplexpand (void **buf, size_t tsiz, size_t *len)
size_t osiz = tsiz * *len;
*buf = realloc (*buf, osiz << 1);
- if (!buf)
+ if (!*buf)
return -1;
memset ((char *)*buf + osiz, 0, osiz);