diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-02-10 17:21:47 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-02-10 17:21:47 +0100 |
| commit | d9b519f969c57e2b5eb73ad212a4382ea54cb3e4 (patch) | |
| tree | 4769f2aa6d8442978d2fdbf9585344cf540edb36 /src/Fl_Text_Buffer.cxx | |
| parent | 7f87c847ba8ec976c6ad345942f9867658a89ab2 (diff) | |
Infinite undo: fix compiler warning
Diffstat (limited to 'src/Fl_Text_Buffer.cxx')
| -rw-r--r-- | src/Fl_Text_Buffer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Text_Buffer.cxx b/src/Fl_Text_Buffer.cxx index 620b3d145..64cae88e5 100644 --- a/src/Fl_Text_Buffer.cxx +++ b/src/Fl_Text_Buffer.cxx @@ -168,10 +168,10 @@ public: Fl_Text_Undo_Action* pop() { if (list_size_ > 0) { - Fl_Text_Undo_Action *action = list_[list_size_-1]; return list_[--list_size_]; - } else + } else { return NULL; + } } void clear() { |
