From f603b6ef68696be0f90a5fe6c834665d6e2670bb Mon Sep 17 00:00:00 2001 From: axel Date: Wed, 17 Jan 2007 01:11:30 +1000 Subject: [PATCH] Fix potential use of ininitialized variable. Could cause fish to save the history even when unneeded. darcs-hash:20070116151130-ac50b-6186e6da834bae3ea07f3f25a105592f5115e0f3.gz --- history.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/history.c b/history.c index 652912fde..9bb520c3a 100644 --- a/history.c +++ b/history.c @@ -609,7 +609,7 @@ static void history_save_mode( void *n, history_mode_t *m ) FILE *out; history_mode_t *on_disk; int i; - int has_new; + int has_new=0; wchar_t *tmp_name; /*