From a34550667298dcff6cbd7333288d71808b800b33 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 5 Sep 2008 20:59:09 +0000 Subject: [PATCH] Add an assert to make tools happier. svn:r16782 --- src/common/container.c | 2 ++ 1 file changed, 2 insertions(+) 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) {