From 6f9ef0b7befb9b5943fcbc0a91a2e00fa0f57cb2 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT service" Date: Sun, 1 Feb 2009 20:32:11 +0100 Subject: [PATCH] fixed unitialized var in init_chown_advanced() - patch from andrew_b --- ChangeLog | 5 +++++ src/achown.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6e4f37848..5c0e973cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-02-01 Enrico Weigelt, metux ITS + + * src/achown.c: fixed unitialized var in init_chown_advanced() + (patch from andrew_b) + 2009-01-31 Enrico Weigelt, metux ITS , Patrick Winnertz , Slava Zanko , Sergei Trofimovich * edit/editcmd.c, mhl/escape.h, mhl/string.h, mhl/types.h, src/Makefile.am, diff --git a/src/achown.c b/src/achown.c index 72ddcada2..627711041 100644 --- a/src/achown.c +++ b/src/achown.c @@ -539,9 +539,9 @@ init_chown_advanced (void) int i; enum { dlg_h = 13, dlg_w = 74, n_elem = 4 }; #ifdef ENABLE_NLS - static int i18n_len; - - if (!i18n_len) { + static int i18n_len = 0; + + if (i18n_len == 0) { int dx, cx; for (i = 0 ; i < n_elem ; i++) { chown_advanced_but[i].text = _(chown_advanced_but[i].text);