From e2e6c8c89bacf6be68997d405adbc5b272616c47 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Sun, 19 Jun 2011 00:26:48 +0200 Subject: [PATCH] =?UTF-8?q?bugfiy:=20initialize=20parse=20iterator=20even?= =?UTF-8?q?=20when=20string=20is=20empty=20or=20NULL=20pointer=20Thanks=20?= =?UTF-8?q?to=20J=C3=B6rg=20Wolf=20for=20pointing=20this=20out?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uri.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/uri.c b/uri.c index 906f0364..0f198404 100644 --- a/uri.c +++ b/uri.c @@ -506,13 +506,9 @@ coap_parse_iterator_init(unsigned char *s, size_t n, unsigned char separator, unsigned char *delim, size_t dlen, coap_parse_iterator_t *pi) { - assert(s); assert(pi); assert(separator); - if (!s || !n) - return NULL; - pi->separator = separator; pi->delim = delim; pi->dlen = dlen;