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

This commit is contained in:
Axel Wagner 2011-01-01 15:07:28 +01:00
parent b3970b36a5
commit 64d8d40b25
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; rec += n;
} }
if (strlen(buffer) == 0) { if (*buffer == '\0') {
FREE(buffer); FREE(buffer);
return; return;
} }