summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2021-11-24 14:57:44 -0800
committerGreg Ercolano <erco@seriss.com>2021-11-24 14:57:44 -0800
commite97fd17e04cf400f30e059f532975de1092a9466 (patch)
tree1bde5f5ce537493ed75c6c8c10f9ae4f4f687c42 /src
parentef1c2d5b2686ee7812c4067ea199006e8df0f5da (diff)
Solves Fl_Table_Row warning in issue #296
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Table_Row.cxx1
1 files changed, 1 insertions, 0 deletions
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;