From 600c4ae95c129ac005689b7d6cf3c783e23682f7 Mon Sep 17 00:00:00 2001 From: Axel Wagner Date: Sat, 1 Jan 2011 15:07:28 +0100 Subject: [PATCH] Use "*buffer == '\0'" instead of "strlen(buffer) == 0" (thanks dothebart) --- i3bar/src/child.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5