From 3bb6ada261aab0f2cd1e6cedf019d27163ee98e6 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 31 Jul 2016 13:11:34 +0000 Subject: [PATCH] sh: Fix a clang warning. Submitted by: bdrewery --- bin/sh/expand.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/sh/expand.c b/bin/sh/expand.c index fe72c49e957e..d74262a6c643 100644 --- a/bin/sh/expand.c +++ b/bin/sh/expand.c @@ -473,7 +473,8 @@ expbackq(union node *cmd, int quoted, int flag, struct worddest *dst) if (--in.nleft < 0) { if (in.fd < 0) break; - while ((i = read(in.fd, buf, sizeof buf)) < 0 && errno == EINTR); + while ((i = read(in.fd, buf, sizeof buf)) < 0 && errno == EINTR) + ; TRACE(("expbackq: read returns %d\n", i)); if (i <= 0) break;