From 0c9f635c461bfc6f9e3ecea7ae2082da6bbea3e5 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 27 Mar 2013 16:08:58 +0100 Subject: [PATCH] Build fix. --- lib/config/config_lexer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0