summaryrefslogtreecommitdiff
path: root/src/generate.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-08 01:25:52 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-08 02:07:49 -0400
commitc99ab20853b1315d59938c7e16a420bc09407299 (patch)
tree239ac7868919f7a4a40edd5c9bc563cd1749d42b /src/generate.cc
parent6f95dfa6bec4f468dc5345976309fb965a650524 (diff)
downloadfork-ledger-c99ab20853b1315d59938c7e16a420bc09407299.tar.gz
fork-ledger-c99ab20853b1315d59938c7e16a420bc09407299.tar.bz2
fork-ledger-c99ab20853b1315d59938c7e16a420bc09407299.zip
Fixed a few minor cases of uninitialized variables
Diffstat (limited to 'src/generate.cc')
-rw-r--r--src/generate.cc2
1 files changed, 1 insertions, 1 deletions
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();