mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:37:36 +00:00
LibRegex: VERIFY that string builder in print_header is not null.
I don't know why g++ thinks this is the case with ENABLE_ALL_DEBUG_MACROS when building for serenity. Adding an assert to placate it seems reasonable
This commit is contained in:
parent
87a47de613
commit
dc6485cfcb
1 changed files with 3 additions and 1 deletions
|
@ -129,8 +129,10 @@ public:
|
|||
for (size_t i = 0; i < length; ++i) {
|
||||
builder.append('=');
|
||||
}
|
||||
auto str = builder.to_string();
|
||||
VERIFY(!str.is_empty());
|
||||
|
||||
fprintf(m_file, "%s\n", builder.to_string().characters());
|
||||
fprintf(m_file, "%s\n", str.characters());
|
||||
fflush(m_file);
|
||||
|
||||
builder.clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue