Skip to content

Commit 12d04bf

Browse files
committed
[CID 16174] MCGDashesCreate(): Free uninitialized pointer.
1 parent 76397c1 commit 12d04bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libgraphics/src/utils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ bool MCGDashesCreate(MCGFloat p_phase, const MCGFloat *p_lengths, uindex_t p_ari
230230
if (t_success)
231231
t_success = MCMemoryNew(t_dashes);
232232

233-
MCGFloat *t_lengths;
233+
MCGFloat *t_lengths = NULL;
234234
if (t_success)
235235
t_success = MCMemoryNewArray(p_arity, t_lengths);
236236

@@ -954,4 +954,4 @@ bool MCGAffineTransformFromPoints(const MCGPoint p_src[3], const MCGPoint p_dst[
954954
return true;
955955
}
956956

957-
////////////////////////////////////////////////////////////////////////////////
957+
////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)