Build fix.

This commit is contained in:
Gunnar Beutner 2013-03-27 16:08:58 +01:00
parent 4c04c2665c
commit 0c9f635c46
1 changed files with 1 additions and 1 deletions

View File

@ -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;