selOps.c: warning: variable 'type' is used uninitialized

selOps.c:1942:11: warning: variable 'type' is used uninitialized whenever 'if' condition is false

clang18 -Wall warning cleanup [-Wsometimes-uninitialized]
This commit is contained in:
Darryl L. Miles
2024-10-09 21:34:12 -04:00
committed by Tim Edwards
parent 3919cc5b63
commit fa3a01c486
+2
View File
@@ -1942,6 +1942,8 @@ selStretchFillFunc3(tile, area)
else if (selStretchY < 0) else if (selStretchY < 0)
type = (SplitDirection(tile) ? SplitLeftType(tile) : type = (SplitDirection(tile) ? SplitLeftType(tile) :
SplitRightType(tile)); SplitRightType(tile));
else
type = TT_SPACE;
if (type == TT_SPACE) return 0; /* nothing to stretch */ if (type == TT_SPACE) return 0; /* nothing to stretch */
} }
else else