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-04 19:45:07 +01:00 committed by Tim Edwards
parent 3919cc5b63
commit fa3a01c486
1 changed files with 2 additions and 0 deletions

View File

@ -1942,6 +1942,8 @@ selStretchFillFunc3(tile, area)
else if (selStretchY < 0)
type = (SplitDirection(tile) ? SplitLeftType(tile) :
SplitRightType(tile));
else
type = TT_SPACE;
if (type == TT_SPACE) return 0; /* nothing to stretch */
}
else