diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-03-14 18:32:05 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-03-14 18:32:05 +0000 |
commit | 050eba408d44d8c1a53e5d6ec2a178fc38112e62 (patch) | |
tree | 995fcf44c1c016acdc27d8c4fbcc8e7a4ec33e31 /amiga | |
parent | 6a561dc6dd5ba887fb611092898c5f890087e7b6 (diff) | |
download | netsurf-050eba408d44d8c1a53e5d6ec2a178fc38112e62.tar.gz netsurf-050eba408d44d8c1a53e5d6ec2a178fc38112e62.tar.bz2 |
Avoid crash when no theme is present
svn path=/trunk/netsurf/; revision=12047
Diffstat (limited to 'amiga')
-rw-r--r-- | amiga/theme.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/amiga/theme.c b/amiga/theme.c index a6fe97d5a..4f442f397 100644 --- a/amiga/theme.c +++ b/amiga/theme.c @@ -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) |