Use "*buffer == '\0'" instead of "strlen(buffer) == 0" (thanks dothebart)

next
Axel Wagner 2011-01-01 15:07:28 +01:00
parent 3daab599ca
commit 600c4ae95c
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ void stdin_io_cb(struct ev_loop *loop, ev_io *watcher, int revents) {
}
rec += n;
}
if (strlen(buffer) == 0) {
if (*buffer == '\0') {
FREE(buffer);
return;
}