diff options
| -rw-r--r-- | ychat/src/chat/chat.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ychat/src/chat/chat.cpp b/ychat/src/chat/chat.cpp index 8910a80..e6d39b6 100644 --- a/ychat/src/chat/chat.cpp +++ b/ychat/src/chat/chat.cpp @@ -87,6 +87,8 @@ chat::get_user( string &s_user, bool &b_found ) if ( *( (bool*) param.elem[1] ) ) return (user*) param.elem[2]; + + return NULL; // not found: defined return (callers check b_found first) } void |
