commit | ef3d04d75bbc1d992fcb2ca13e9496a4a86579c9 | [log] [tgz] |
---|---|---|
author | Nguyen Anh Quynh <[email protected]> | Thu Feb 27 23:42:49 2014 +0800 |
committer | Nguyen Anh Quynh <[email protected]> | Thu Feb 27 23:42:49 2014 +0800 |
tree | d5f8b8ca2e7f380820fc79dd4a46986ada6a1edc | |
parent | 226d7dca648c3a61dd5d5d56d5384d97673f7551 [diff] [blame] |
fix a bug in cs_close(): improper check on handle value
diff --git a/cs.c b/cs.c index a96b435..e7e13b9 100644 --- a/cs.c +++ b/cs.c
@@ -179,7 +179,7 @@ cs_err cs_close(csh *handle) { - if (*handle) + if (*handle == 0) // invalid handle return CS_ERR_CSH;