From 90f349cd108f2a522575d862100ed1fbc8e3ba75 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 6 May 2005 00:51:48 +0000 Subject: Fixed park crash bug #63 reported by ViaraiX git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1312 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 7348c6db3..73e0019aa 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -202,6 +202,8 @@ void userrec::ClearBuffer() std::string userrec::GetBuffer() { + if (recvq == "") + return ""; char* line = (char*)recvq.c_str(); std::string ret = ""; while ((*line != '\n') && (strlen(line))) -- cgit v1.3.1-10-gc9f91