diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2024-03-03 19:04:21 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2024-03-04 03:53:39 -0500 |
commit | b116d033a5b4daf75a10ad959e42aac398036ef9 (patch) | |
tree | 3fce04a8b83953631cbd3cac85e2bdde57aaed10 | |
parent | fd4b2ce63feae01744a850fa6f1809ff15361a8b (diff) |
clang/gcc warnings about undefined behavior (minor bug-fix)
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
-rw-r--r-- | src/DisplayList.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DisplayList.c b/src/DisplayList.c index a2d3c3a..457485c 100644 --- a/src/DisplayList.c +++ b/src/DisplayList.c @@ -734,7 +734,7 @@ DlXPoints(Widget w, XtPointer args, XtPointer data, int id) points[i].y = (short)(points[i].y + ypad); } } - else + else if (num_points != 0) { points[0].x = (short)(points[0].x + xpad); points[0].y = (short)(points[0].y + ypad); |