diff options
-rw-r--r-- | dgl/src/NanoVG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dgl/src/NanoVG.cpp b/dgl/src/NanoVG.cpp index a54b02a8..3ef7b35d 100644 --- a/dgl/src/NanoVG.cpp +++ b/dgl/src/NanoVG.cpp @@ -863,7 +863,7 @@ float NanoVG::textBounds(float x, float y, const char* string, const char* end, if (fContext == nullptr) return 0.0f; DISTRHO_SAFE_ASSERT_RETURN(string != nullptr && string[0] != '\0', 0.0f); - float b[4]; + float b[4] = { 0.0f, 0.0f, 0.0f, 0.0f }; const float ret = nvgTextBounds(fContext, x, y, string, end, b); bounds = Rectangle<float>(b[0], b[1], b[2] - b[0], b[3] - b[1]); return ret; |