From dc15da957271746836c04d6fc1d81668ccdd0427 Mon Sep 17 00:00:00 2001 From: Ilia Maslakov Date: Tue, 25 Aug 2009 05:33:18 +0000 Subject: [PATCH] fix: uninitialized variables Signed-off-by: Ilia Maslakov --- src/viewer/nroff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/viewer/nroff.c b/src/viewer/nroff.c index 9c7f6273f..bdc2cba64 100644 --- a/src/viewer/nroff.c +++ b/src/viewer/nroff.c @@ -70,6 +70,8 @@ mcview_display_nroff (mcview_t * view) off_t from; int cw = 1; int c; + int c_prev = 0; + int c_next = 0; gboolean read_res = TRUE; struct hexedit_change_node *curr = view->change_list; @@ -100,8 +102,6 @@ mcview_display_nroff (mcview_t * view) from += cw - 1; if (c == '\b') { - int c_prev; - int c_next; if (from > 1) { c_prev = mcview_get_byte (view, from - 2); c_next = mcview_get_byte (view, from);