From 6e5c472cf9641426c5425ea2f404e8908d76d63e Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 26 Nov 2022 01:35:50 +0100 Subject: Handle Fluid project settings better (#556) Fix allocation bug in Fl_String --- src/Fl_String.cxx | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') diff --git a/src/Fl_String.cxx b/src/Fl_String.cxx index f53a2da3e..57103d700 100644 --- a/src/Fl_String.cxx +++ b/src/Fl_String.cxx @@ -86,8 +86,6 @@ void Fl_String::alloc_buf(int size) { return; if (size > 0 && size <= capacity_) return; - if (capacity_ > 0) - return; int new_size = (size + 1 + 15) & (~15); // round upwards char *new_value = new char[new_size]; -- cgit v1.2.3