mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 17:58:18 +03: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
Notes:
sideshowbarker
2024-07-18 21:50:58 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/dc6485cfcb0 Pull-request: https://github.com/SerenityOS/serenity/pull/4921 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/linusg
@ -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…
Reference in New Issue
Block a user