mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
Avoid crash when no theme is present
svn path=/trunk/netsurf/; revision=12047
This commit is contained in:
parent
6a561dc6dd
commit
050eba408d
@ -115,7 +115,12 @@ void ami_theme_init(void)
|
||||
UnLock(lock);
|
||||
}
|
||||
|
||||
messages_load(themefile);
|
||||
lock = Lock(themefile,ACCESS_READ);
|
||||
if(lock)
|
||||
{
|
||||
UnLock(lock);
|
||||
messages_load(themefile);
|
||||
}
|
||||
}
|
||||
|
||||
void ami_theme_throbber_setup(void)
|
||||
|
Loading…
Reference in New Issue
Block a user