Skip to content

Commit 9bc62ab

Browse files
committed
[graf2d] Avoid uninitialized variable warning in TPolyLine
1 parent 7947de8 commit 9bc62ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

graf2d/graf/src/TPolyLine.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ void TPolyLine::ExecuteEvent(Int_t event, Int_t px, Int_t py)
346346
paint_hollow();
347347

348348
if (ipoint < 0) {
349-
Int_t pxp0, pyp0, pxp, pyp;
349+
Int_t pxp0{}, pyp0{}, pxp{}, pyp{};
350350
// move all points
351351
for (Int_t i = 0; i < np; i++) {
352352
get_point(i, pxp, pyp);

0 commit comments

Comments
 (0)