diff options
author | Harvey Harrison <[email protected]> | 2014-04-11 11:02:37 -0700 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2014-04-11 11:02:37 -0700 |
commit | 81aa171cd79c10fde9ebd02af516eabbd7283e48 (patch) | |
tree | 3420929e9c7e15f6139454c0dc0d31d8e6f27189 /src/jogl/classes/jogamp/opengl | |
parent | e0241be09419849ed88c68ea2a387a46bde2b77f (diff) |
jogl: avoid writing into an uninitialized array in nurbs code
pspec is never initialized, this would have always crashed.
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/jogl/classes/jogamp/opengl')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/glu/nurbs/Patchlist.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jogl/classes/jogamp/opengl/glu/nurbs/Patchlist.java b/src/jogl/classes/jogamp/opengl/glu/nurbs/Patchlist.java index 8c2922565..240c905a2 100644 --- a/src/jogl/classes/jogamp/opengl/glu/nurbs/Patchlist.java +++ b/src/jogl/classes/jogamp/opengl/glu/nurbs/Patchlist.java @@ -63,6 +63,7 @@ public class Patchlist { for (Quilt q = quilts; q != null; q = q.next) patch = new Patch(q, pta, ptb, patch); + pspec = new Pspec[2]; pspec[0] = new Pspec(); pspec[0].range[0] = pta[0]; pspec[0].range[1] = ptb[0]; |