From: Axel Wagner Date: Sat, 1 Jan 2011 14:07:28 +0000 (+0100) Subject: Use "*buffer == '\0'" instead of "strlen(buffer) == 0" (thanks dothebart) X-Git-Tag: 4.0.1~7^2~32 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=64d8d40b25e10151ed9e4df162b40d31799cca39;p=i3%2Fi3 Use "*buffer == '\0'" instead of "strlen(buffer) == 0" (thanks dothebart) --- diff --git a/i3bar/src/child.c b/i3bar/src/child.c index 3092d527..0209e4cb 100644 --- a/i3bar/src/child.c +++ b/i3bar/src/child.c @@ -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; }