diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2007-07-10 23:27:22 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2007-07-10 23:27:22 +0000 |
commit | 1064bc972e9e3db470da2365e3ad74fddbfc6da0 (patch) | |
tree | 48d18d418060200c1188c132b033b340a33f4ff0 | |
parent | 8c37c8567d24d94636cff13bab4eebd9ae690ca2 (diff) | |
download | libdom-1064bc972e9e3db470da2365e3ad74fddbfc6da0.tar.gz libdom-1064bc972e9e3db470da2365e3ad74fddbfc6da0.tar.bz2 |
Warning fixes
svn path=/trunk/dom/; revision=3396
-rw-r--r-- | src/core/string.c | 6 |
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; |