summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-09-02 22:57:01 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-09-02 22:57:01 -0700
commit7e2d6bf6304ef22ce8f35bc6c5eac323f2f39d01 (patch)
treef0175fc41c2c9b9c6689624f57908dfc7e1fec4d /src
parent3b0c9a6b3ebedc6d464262de4962a235b66b9c9b (diff)
til_fb: verify fb_ops and setup creator match
Just another defensive programmer error assert, though exceedingly unlikely we definitely shouldn't be getting til_setup_t's created by someone else.
Diffstat (limited to 'src')
-rw-r--r--src/til_fb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/til_fb.c b/src/til_fb.c
index 8760b84..b6e98dd 100644
--- a/src/til_fb.c
+++ b/src/til_fb.c
@@ -560,6 +560,7 @@ int til_fb_new(const til_fb_ops_t *ops, const char *title, const til_setup_t *se
assert(ops->page_alloc);
assert(ops->page_free);
assert(ops->page_flip);
+ assert(!setup || setup->creator == ops);
assert(n_pages > 1);
assert(res_fb);
© All Rights Reserved