mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
Widget can't be NULL.
This commit is contained in:
parent
c8263d299e
commit
5f7a3a7ada
@ -19,6 +19,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <assert.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
@ -83,6 +84,8 @@ fbtk_request_redraw(fbtk_widget_t *widget)
|
||||
fbtk_widget_t *cwidget;
|
||||
fbtk_widget_t *pwidget;
|
||||
|
||||
assert(widget != NULL);
|
||||
|
||||
/* if widget not mapped do not try to redraw it */
|
||||
pwidget = widget;
|
||||
while (pwidget != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user