FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 01-06-2012, 02:19 PM
Andrew Price
 
Default gfs2_edit: Fix possible uninitialized access

Spotted by coverity: Using uninitialized value "ch".

Signed-off-by: Andrew Price <anprice@redhat.com>
---
gfs2/edit/hexedit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gfs2/edit/hexedit.c b/gfs2/edit/hexedit.c
index fcab625..72ee7d2 100644
--- a/gfs2/edit/hexedit.c
+++ b/gfs2/edit/hexedit.c
@@ -2232,7 +2232,7 @@ static void process_field(const char *field, const char *nstr)
/* ------------------------------------------------------------------------ */
static void interactive_mode(void)
{
- int ch, Quit;
+ int ch = 0, Quit;

if ((wind = initscr()) == NULL) {
fprintf(stderr, "Error: unable to initialize screen.");
--
1.7.6.4
 

Thread Tools




All times are GMT. The time now is 08:21 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org