From c99ab20853b1315d59938c7e16a420bc09407299 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 8 Mar 2009 01:25:52 -0400 Subject: Fixed a few minor cases of uninitialized variables --- src/generate.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/generate.cc') diff --git a/src/generate.cc b/src/generate.cc index 6d1bfb1a..958fc5dd 100644 --- a/src/generate.cc +++ b/src/generate.cc @@ -79,7 +79,7 @@ void generate_posts_iterator::generate_string(std::ostream& out, int len, DEBUG("generate.post.string", "Generating string of length " << len << ", only alpha " << only_alpha); - int last; + int last = -1; bool first = true; for (int i = 0; i < len; i++) { int next = only_alpha ? 3 : three_gen(); -- cgit v1.2.3