summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2022-11-26 01:35:50 +0100
committerGitHub <noreply@github.com>2022-11-26 01:35:50 +0100
commit6e5c472cf9641426c5425ea2f404e8908d76d63e (patch)
tree0f7ec46f88f01257702f1f9a7c8323a7fdc768c3 /src
parentc1a7c4af042a593b4b3a1df3e750b0cc80362486 (diff)
Handle Fluid project settings better (#556)
Fix allocation bug in Fl_String
Diffstat (limited to 'src')
-rw-r--r--src/Fl_String.cxx2
1 files changed, 0 insertions, 2 deletions
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];