Fixed a reference to uninitialized memory

This was only found with _GLIBCXX_DEBUG=1 *and* coverage analysis
(-fprofile-arcs -ftest-coverage).
This commit is contained in:
John Wiegley 2009-03-07 15:04:32 -04:00
parent 79515680cf
commit ec382f54b7

View file

@ -99,7 +99,7 @@ public:
}
virtual post_t * operator()() {
if (posts_i == posts_end || posts_uninitialized)
if (posts_uninitialized || posts_i == posts_end)
return NULL;
return *posts_i++;
}