diff options
| -rw-r--r-- | xlators/features/locks/src/common.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/features/locks/src/common.c b/xlators/features/locks/src/common.c index 0fba36cc088..324187a4a7a 100644 --- a/xlators/features/locks/src/common.c +++ b/xlators/features/locks/src/common.c @@ -529,7 +529,9 @@ __copy_lock(posix_lock_t *src)                          GF_FREE(dst);                          dst = NULL;                  } -                INIT_LIST_HEAD (&dst->list); + +	if (dst != NULL) +               INIT_LIST_HEAD (&dst->list);          }          return dst;  | 
