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~3^2~49 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=600c4ae95c129ac005689b7d6cf3c783e23682f7;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; }