projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
335a95b
)
Fix unhandled return value
author
David Goulet
<dgoulet@efficios.com>
Mon, 30 Jan 2012 16:37:53 +0000
(11:37 -0500)
committer
David Goulet
<dgoulet@efficios.com>
Mon, 30 Jan 2012 16:37:53 +0000
(11:37 -0500)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/kernel.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/lttng-sessiond/kernel.c
b/src/bin/lttng-sessiond/kernel.c
index 43c6285773847739afc437de35bbb09cb0f6b0e3..6eeb9b5b1b7824802bb2da554999ca2a46e26bce 100644
(file)
--- 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:
This page took
0.026221 seconds
and
4
git commands to generate.