From e97fd17e04cf400f30e059f532975de1092a9466 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Wed, 24 Nov 2021 14:57:44 -0800 Subject: Solves Fl_Table_Row warning in issue #296 --- src/Fl_Table_Row.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/Fl_Table_Row.cxx b/src/Fl_Table_Row.cxx index 29d77747e..3a091ff3d 100644 --- a/src/Fl_Table_Row.cxx +++ b/src/Fl_Table_Row.cxx @@ -51,6 +51,7 @@ Fl_Table_Row::CharVector::~CharVector() { // DTOR } void Fl_Table_Row::CharVector::size(int count) { + if (count <= 0 ) count = 1; // (issue #296) if (count != _size) { arr = (char*)realloc(arr, (unsigned)count * sizeof(char)); _size = count; -- cgit v1.2.3