Commit d6fa203d authored by Denis Bilenko's avatar Denis Bilenko

fix gcc warning

parent a207d016
...@@ -52,7 +52,10 @@ cdef class buffer: ...@@ -52,7 +52,10 @@ cdef class buffer:
return result return result
def readline(self): def readline(self):
return evbuffer_readline(self.__obj) or '' cdef char* res = evbuffer_readline(self.__obj)
if res:
return res
return ''
def readlines(self, hint=-1): def readlines(self, hint=-1):
return list(self.__iter__()) return list(self.__iter__())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment