From ec382f54b7cffce3433896b331ef36c52de24b08 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 7 Mar 2009 15:04:32 -0400 Subject: Fixed a reference to uninitialized memory This was only found with _GLIBCXX_DEBUG=1 *and* coverage analysis (-fprofile-arcs -ftest-coverage). --- src/iterators.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/iterators.h') diff --git a/src/iterators.h b/src/iterators.h index 7ea78118..67293c5c 100644 --- a/src/iterators.h +++ b/src/iterators.h @@ -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++; } -- cgit v1.2.3