commit | c8e0785cb6ec600c7f0dc4c9216005217f8acaa5 | [log] [tgz] |
---|---|---|
author | Nguyen Anh Quynh <aquynh@gmail.com> | Fri Feb 28 09:38:11 2014 +0800 |
committer | Nguyen Anh Quynh <aquynh@gmail.com> | Fri Feb 28 09:38:11 2014 +0800 |
tree | 55b31a0424da4e277ada8c191b05f42facdcea86 | |
parent | fbe10a55c08b93fc67c685616cff3de2a604ad24 [diff] [blame] |
add some more comments regarding invalidating @handle of cs_close()
diff --git a/cs.c b/cs.c index cf60bee..f36a120 100644 --- a/cs.c +++ b/cs.c
@@ -194,7 +194,8 @@ memset(ud, 0, sizeof(*ud)); cs_mem_free(ud); - // invalid this handle + // invalidate this handle by ZERO out its value. + // this is to make sure it is unusable after cs_close() *handle = 0; return CS_ERR_OK;