From 31594f9eb0d16e03e588cbec7bbbf6d9806a956a Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Tue, 13 Jun 2006 01:00:03 -0500 Subject: [PATCH] Do not use uninitialized variable --- moo/mooedit/mootextfind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moo/mooedit/mootextfind.c b/moo/mooedit/mootextfind.c index b3a2c0f5..1b610283 100644 --- a/moo/mooedit/mootextfind.c +++ b/moo/mooedit/mootextfind.c @@ -1197,7 +1197,7 @@ run_replace_interactive (GtkTextView *view, if (result != MOO_TEXT_REPLACE_STOP && get_search_bounds2 (buffer, flags, &start, &end)) { - int replaced2; + int replaced2 = replaced; if (moo_text_search_from_start_dialog (GTK_WIDGET (view), replaced)) do_replace_interactive (view, &start, &end, flags, text, regex, replacement, &replaced2);