From: Nick Mathewson Date: Fri, 5 Sep 2008 20:59:09 +0000 (+0000) Subject: Add an assert to make tools happier. X-Git-Tag: tor-0.2.1.6-alpha~79 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a34550667298dcff6cbd7333288d71808b800b33;p=thirdparty%2Ftor.git Add an assert to make tools happier. svn:r16782 --- diff --git a/src/common/container.c b/src/common/container.c index ffb4ffe497..8021bd19c3 100644 --- a/src/common/container.c +++ b/src/common/container.c @@ -358,6 +358,8 @@ smartlist_split_string(smartlist_t *sl, const char *str, const char *sep, ; } + tor_assert(end); + if (!*end) { next = NULL; } else if (sep) {