Commit df818b38 authored by Albert Astals Cid's avatar Albert Astals Cid

SplashPath: Fix overflow check

What signals overflow is size being 0 not length being 0
parent 23d570a6
......@@ -116,7 +116,7 @@ SplashError SplashPath::moveTo(SplashCoord x, SplashCoord y) {
return splashErrBogusPath;
if (unlikely(length == 0))
if (unlikely(size == 0))
return splashErrBogusPath;
pts[length].x = x;
pts[length].y = y;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment