mirror of
https://github.com/xzeldon/htop.git
synced 2025-04-08 12:07:08 +03:00
Add assert to improve backtraces on NULL function pointer
This commit is contained in:
parent
ba5ef1ac8b
commit
796bc36fe0
1
Header.c
1
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user