diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-15 13:36:50 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-15 13:50:42 +0200 |
commit | d8aa2a6997800779cd2dc4303cb2256a32ffc2f3 (patch) | |
tree | 27b9d3e1d1fe541b346ffdb2d597a0a93e064ea8 /Libraries/LibWeb/Forward.h | |
parent | 85f2987848e24bd32ff093ee678d11df63492423 (diff) | |
download | serenity-d8aa2a6997800779cd2dc4303cb2256a32ffc2f3.zip |
AK: StringBuilder with 0 initial capacity shouldn't build null String
With 0 initial capacity, we don't allocate an underlying ByteBuffer
for the StringBuilder, which would then lead to a null String() being
returned from to_string().
This patch makes sure we always build a valid String.
Diffstat (limited to 'Libraries/LibWeb/Forward.h')
0 files changed, 0 insertions, 0 deletions