[icinga-checkins] icinga.org: icinga2/master: Build fix.

git at icinga.org git at icinga.org
Wed Mar 27 16:09:10 CET 2013


Module: icinga2
Branch: master
Commit: 0c9f635c461bfc6f9e3ecea7ae2082da6bbea3e5
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=0c9f635c461bfc6f9e3ecea7ae2082da6bbea3e5

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Wed Mar 27 16:08:58 2013 +0100

Build fix.

---

 lib/config/config_lexer.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/config/config_lexer.cc b/lib/config/config_lexer.cc
index 3d679e1..e5c273e 100644
--- a/lib/config/config_lexer.cc
+++ b/lib/config/config_lexer.cc
@@ -674,7 +674,7 @@ static void lb_append_char(lex_buf *lb, char new_char)
 	if (old_blocks != new_blocks) {
 		char *new_buf = (char *)realloc(lb->buf, new_blocks * block_size);
 
-		if (new_buf == NULL && new_alloc > 0)
+		if (new_buf == NULL && new_blocks > 0)
 			throw std::bad_alloc();
 
 		lb->buf = new_buf;





More information about the icinga-checkins mailing list