From fd5275f4a39c6fca52fa49d43f26791c4c297e9f Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 11 Jan 2020 23:04:40 +0100 Subject: [PATCH] Return default max chars on exception in get_max_chars(). --- src/instance.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/instance.cpp b/src/instance.cpp index f80e430..172489c 100644 --- a/src/instance.cpp +++ b/src/instance.cpp @@ -73,6 +73,7 @@ uint64_t Instance::get_max_chars() catch (const exception &e) { debuglog << "Unexpected exception: " << e.what() << '\n'; + return default_max_chars; } }