summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2007-07-10 23:27:22 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2007-07-10 23:27:22 +0000
commit0da3ecb98a6ab4bc6d4c255815a523dd50e6aaf1 (patch)
tree48d18d418060200c1188c132b033b340a33f4ff0 /src
parent83eff3f08b8a42d89a6eae8ffb7a373016108d76 (diff)
downloadlibdom-0da3ecb98a6ab4bc6d4c255815a523dd50e6aaf1.tar.gz
libdom-0da3ecb98a6ab4bc6d4c255815a523dd50e6aaf1.tar.bz2
Warning fixes
svn path=/trunk/dom/; revision=3396
Diffstat (limited to 'src')
-rw-r--r--src/core/string.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/string.c b/src/core/string.c
index d73ce8d..66019c7 100644
--- a/src/core/string.c
+++ b/src/core/string.c
@@ -227,7 +227,8 @@ dom_exception dom_string_get_data(struct dom_string *str,
*/
int dom_string_cmp(struct dom_string *s1, struct dom_string *s2)
{
- const uint8_t *d1, *d2;
+ const uint8_t *d1 = NULL;
+ const uint8_t *d2 = NULL;
size_t l1, l2;
dom_exception err;
@@ -254,7 +255,8 @@ int dom_string_cmp(struct dom_string *s1, struct dom_string *s2)
*/
int dom_string_icmp(struct dom_string *s1, struct dom_string *s2)
{
- const uint8_t *d1, *d2;
+ const uint8_t *d1 = NULL;
+ const uint8_t *d2 = NULL;
size_t l1, l2;
dom_exception err;