diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-06-27 16:40:25 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-07-03 12:36:32 +0000 |
| commit | 9155948ac8f2902acae107e9ff765630295ca6b3 (patch) | |
| tree | 828e9bbc33d6b7678a2f75ac7096445a1504f69c /cursor-shape.c | |
| parent | pgo: update xcursor stubs to use enum instead of char pointer (diff) | |
cursor-shape: assert lookup succeeded
Diffstat (limited to 'cursor-shape.c')
| -rw-r--r-- | cursor-shape.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cursor-shape.c b/cursor-shape.c index cd9ba221..48f7419f 100644 --- a/cursor-shape.c +++ b/cursor-shape.c @@ -25,6 +25,7 @@ cursor_shape_to_string(enum cursor_shape shape) }; xassert(shape <= ALEN(table)); + xassert(table[shape] != NULL); return table[shape]; } @@ -47,6 +48,7 @@ cursor_shape_to_server_shape(enum cursor_shape shape) }; xassert(shape <= ALEN(table)); + xassert(table[shape] != 0); return table[shape]; } #endif |
