From: Gunnar Beutner Date: Wed, 27 Mar 2013 15:08:58 +0000 (+0100) Subject: Build fix. X-Git-Tag: v0.0.2~167 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c9f635c461bfc6f9e3ecea7ae2082da6bbea3e5;p=icinga2 Build fix. --- diff --git a/lib/config/config_lexer.cc b/lib/config/config_lexer.cc index 3d679e1ad..e5c273ed5 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;