From 56ae2659f7473989e070ba6857cb5fdd8bf3958e Mon Sep 17 00:00:00 2001 From: Brendan Kehoe Date: Thu, 30 Sep 1993 14:21:55 -0400 Subject: [PATCH] bi-lexer.c (scan_string): Do xmalloc if buffer is null and xrealloc if it's not, not the other way around. * bi-lexer.c (scan_string): Do xmalloc if buffer is null and xrealloc if it's not, not the other way around. From-SVN: r5539 --- gcc/bi-lexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/bi-lexer.c b/gcc/bi-lexer.c index 7bfc57e848d..d42b712a67e 100644 --- a/gcc/bi-lexer.c +++ b/gcc/bi-lexer.c @@ -92,7 +92,7 @@ scan_string () int previous_point_index = point - buffer; buffer_size = (!buffer_size ? 32 : buffer_size * 2); - if (buffer) + if (!buffer) buffer = xmalloc (buffer_size); else buffer = xrealloc (buffer, buffer_size); -- 2.30.2