Commit 56ae2659 by Brendan Kehoe

bi-lexer.c (scan_string): Do xmalloc if buffer is null and xrealloc if it's not,…

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
parent e2aa1185
...@@ -92,7 +92,7 @@ scan_string () ...@@ -92,7 +92,7 @@ scan_string ()
int previous_point_index = point - buffer; int previous_point_index = point - buffer;
buffer_size = (!buffer_size ? 32 : buffer_size * 2); buffer_size = (!buffer_size ? 32 : buffer_size * 2);
if (buffer) if (!buffer)
buffer = xmalloc (buffer_size); buffer = xmalloc (buffer_size);
else else
buffer = xrealloc (buffer, buffer_size); buffer = xrealloc (buffer, buffer_size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment