lkml.org 
[lkml]   [2010]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/3] kernel-shark: fix unitialized handle compile warnings
Date
Signed-off-by: Darren Hart <dvhltc@us.ibm.com>
---
kernel-shark.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel-shark.c b/kernel-shark.c
index 9dedf48..222381c 100644
--- a/kernel-shark.c
+++ b/kernel-shark.c
@@ -596,10 +596,10 @@ void kernel_shark(int argc, char **argv)
if (ret >= 0)
input_file = default_input_file;
}
- if (handle)
- handle = tracecmd_open(input_file);
+ handle = tracecmd_open(input_file);

- info->handle = handle;
+ if (handle)
+ info->handle = handle;

/* --- Main window --- */

--
1.6.3.3


\
 
 \ /
  Last update: 2010-02-01 17:53    [W:0.084 / U:4.436 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site