aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cursor-shape.c2
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