stream 类完善

This commit is contained in:
zsxxsz 2014-07-29 22:40:03 +08:00
parent 54aa697c22
commit 9ece101c6f

View File

@ -99,7 +99,7 @@ void* stream::del_ctx(const char* key /* = NULL */)
if (key == NULL || *key == 0)
{
if (default_ctx_ == NULL)
return false;
return NULL;
void* ctx = default_ctx_;
default_ctx_ = NULL;
return ctx;