aboutsummaryrefslogtreecommitdiff
path: root/gcc/bi-lexer.c
diff options
context:
space:
mode:
authorBrendan Kehoe <brendan@gcc.gnu.org>1993-09-30 14:21:55 -0400
committerBrendan Kehoe <brendan@gcc.gnu.org>1993-09-30 14:21:55 -0400
commit56ae2659f7473989e070ba6857cb5fdd8bf3958e (patch)
treeaed29e7a04cd1decdca3486fcea7324a37616bab /gcc/bi-lexer.c
parente2aa1185289e40f09cb6e6452653b15d32861cf3 (diff)
downloadgcc-56ae2659f7473989e070ba6857cb5fdd8bf3958e.zip
gcc-56ae2659f7473989e070ba6857cb5fdd8bf3958e.tar.gz
gcc-56ae2659f7473989e070ba6857cb5fdd8bf3958e.tar.bz2
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
Diffstat (limited to 'gcc/bi-lexer.c')
-rw-r--r--gcc/bi-lexer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/bi-lexer.c b/gcc/bi-lexer.c
index 7bfc57e..d42b712 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);