Diff between 09e69f80ef9d2bcd89746cc229a9a1fcdcc107bc and 5050a95c01b20e409153d7de0da649e43b5239f3

Changed Files

File Additions Deletions Status
profiles/health/hdp.c +1 -1 modified

Full Patch

diff --git a/profiles/health/hdp.c b/profiles/health/hdp.c
index d64edb8..d256c9f 100644
--- a/profiles/health/hdp.c
+++ b/profiles/health/hdp.c
@@ -1505,8 +1505,8 @@ static gboolean check_echo(GIOChannel *io_chan, GIOCondition cond,
 	}
 
 	fd = g_io_channel_unix_get_fd(io_chan);
-	len = read(fd, buf, sizeof(buf));
 
+	len = read(fd, buf, sizeof(buf));
 	if (len != HDP_ECHO_LEN) {
 		value = FALSE;
 		goto end;