From 8936c33a1a322904bd631caff22358a0bb791cf5 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 30 Jan 2012 11:37:53 -0500 Subject: [PATCH] Fix unhandled return value Signed-off-by: David Goulet --- src/bin/lttng-sessiond/kernel.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/lttng-sessiond/kernel.c b/src/bin/lttng-sessiond/kernel.c index 43c628577..6eeb9b5b1 100644 --- a/src/bin/lttng-sessiond/kernel.c +++ b/src/bin/lttng-sessiond/kernel.c @@ -644,6 +644,7 @@ error: */ int init_kernel_workarounds(void) { + int ret; FILE *fp; /* @@ -658,7 +659,10 @@ int init_kernel_workarounds(void) while (!feof(fp)) { char buf[37] = ""; - (void) fread(buf, 1, sizeof(buf), fp); + ret = fread(buf, 1, sizeof(buf), fp); + if (ret < 0) { + /* Ignore error, we don't really care */ + } } fclose(fp); end_boot_id: -- 2.34.1