mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 23:09:39 +03:00
Ensure error is initialised
svn path=/trunk/netsurf/; revision=13711
This commit is contained in:
parent
bfc619a8dc
commit
9b08752807
11
css/css.c
11
css/css.c
@ -943,11 +943,16 @@ nserror nscss_init(void)
|
||||
|
||||
|
||||
#define CSS_DOM_STRING_INTERN(NAME) \
|
||||
exc = dom_string_create_interned((const uint8_t *)#NAME, \
|
||||
do { \
|
||||
exc = dom_string_create_interned((const uint8_t *)#NAME,\
|
||||
sizeof(#NAME) - 1, \
|
||||
&nscss_dom_string_##NAME ); \
|
||||
if ((exc != DOM_NO_ERR) || (nscss_dom_string_##NAME == NULL)) \
|
||||
goto error
|
||||
if ((exc != DOM_NO_ERR) || \
|
||||
(nscss_dom_string_##NAME == NULL)) { \
|
||||
error = NSERROR_NOMEM; \
|
||||
goto error; \
|
||||
} \
|
||||
} while(0)
|
||||
|
||||
CSS_DOM_STRING_INTERN(a);
|
||||
CSS_DOM_STRING_INTERN(abscenter);
|
||||
|
Loading…
Reference in New Issue
Block a user