summaryrefslogtreecommitdiff
path: root/utils/corestrings.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-10-30 22:25:31 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2014-10-30 22:34:09 +0000
commit3ff7557c34618d8e5d0dceccbbfafa2361712f69 (patch)
tree54ca3afa6e94a6174838a33a9c9f550ca5d3d650 /utils/corestrings.c
parent612100bd1a1690fb0884b1e6904c4ab2671ad023 (diff)
downloadnetsurf-3ff7557c34618d8e5d0dceccbbfafa2361712f69.tar.gz
netsurf-3ff7557c34618d8e5d0dceccbbfafa2361712f69.tar.bz2
Add a lwc corestring for "/".
Diffstat (limited to 'utils/corestrings.c')
-rw-r--r--utils/corestrings.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/corestrings.c b/utils/corestrings.c
index cb340e9a6..0f9c4d6ac 100644
--- a/utils/corestrings.c
+++ b/utils/corestrings.c
@@ -121,6 +121,7 @@ lwc_string *corestring_lwc__blank;
lwc_string *corestring_lwc__parent;
lwc_string *corestring_lwc__self;
lwc_string *corestring_lwc__top;
+lwc_string *corestring_lwc_slash_;
/* dom_string strings */
dom_string *corestring_dom_a;
@@ -380,6 +381,7 @@ void corestrings_fini(void)
CSS_LWC_STRING_UNREF(_parent);
CSS_LWC_STRING_UNREF(_self);
CSS_LWC_STRING_UNREF(_top);
+ CSS_LWC_STRING_UNREF(slash_);
#undef CSS_LWC_STRING_UNREF
@@ -687,6 +689,13 @@ nserror corestrings_init(void)
goto error;
}
+ lerror = lwc_intern_string("/", SLEN("/"),
+ &corestring_lwc_slash_);
+ if ((lerror != lwc_error_ok) || (corestring_lwc_slash_ == NULL)) {
+ error = NSERROR_NOMEM;
+ goto error;
+ }
+
#define CSS_DOM_STRING_INTERN(NAME) \
do { \