From 796bc36fe0230c7739bbe95c008241ca0373f890 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 10 Aug 2021 21:15:16 +0200 Subject: [PATCH] Add assert to improve backtraces on NULL function pointer --- Header.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Header.c b/Header.c index 8903fc33..6ffcc00c 100644 --- a/Header.c +++ b/Header.c @@ -183,6 +183,7 @@ void Header_draw(const Header* this) { else actualWidth = width; + assert(meter->draw); meter->draw(meter, x, y, actualWidth); y += meter->h; }