mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 06:51:26 +03:00
Fix cppcheck nullPointer
This commit is contained in:
parent
4575698f0f
commit
5324cd9abd
@ -470,10 +470,10 @@ void gui_window_stop_throbber(struct gui_window *g)
|
||||
// g->shared->throbber_frame = 0;
|
||||
}
|
||||
|
||||
void ami_update_throbber(struct gui_window_2 *g,bool redraw)
|
||||
void ami_update_throbber(struct gui_window_2 *g, bool redraw)
|
||||
{
|
||||
struct IBox *bbox;
|
||||
int frame = g->throbber_frame;
|
||||
int frame;
|
||||
|
||||
if(!g) return;
|
||||
if(!g->objects[GID_THROBBER]) return;
|
||||
@ -481,10 +481,12 @@ void ami_update_throbber(struct gui_window_2 *g,bool redraw)
|
||||
if(g->bw->window->throbbing == false)
|
||||
{
|
||||
frame = 0;
|
||||
g->throbber_frame=1;
|
||||
g->throbber_frame = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
frame = g->throbber_frame;
|
||||
|
||||
if(!redraw)
|
||||
{
|
||||
if(g->throbber_update_count < throbber_update_interval)
|
||||
|
Loading…
Reference in New Issue
Block a user