From 1064bc972e9e3db470da2365e3ad74fddbfc6da0 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 10 Jul 2007 23:27:22 +0000 Subject: Warning fixes svn path=/trunk/dom/; revision=3396 --- src/core/string.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3