summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Bindings/ImageDataWrapper.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-15 13:36:50 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-15 13:50:42 +0200
commitd8aa2a6997800779cd2dc4303cb2256a32ffc2f3 (patch)
tree27b9d3e1d1fe541b346ffdb2d597a0a93e064ea8 /Libraries/LibWeb/Bindings/ImageDataWrapper.h
parent85f2987848e24bd32ff093ee678d11df63492423 (diff)
downloadserenity-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/Bindings/ImageDataWrapper.h')
0 files changed, 0 insertions, 0 deletions