diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-09-05 20:59:09 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-09-05 20:59:09 +0000 |
commit | a34550667298dcff6cbd7333288d71808b800b33 (patch) | |
tree | 72e72b66f581ccc6144562af8f20cec3db9b13ad /src/common/container.c | |
parent | d5b2dab31ddf5f58179a82e56879a9d6e8d01021 (diff) | |
download | tor-a34550667298dcff6cbd7333288d71808b800b33.tar.gz tor-a34550667298dcff6cbd7333288d71808b800b33.zip |
Add an assert to make tools happier.
svn:r16782
Diffstat (limited to 'src/common/container.c')
-rw-r--r-- | src/common/container.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |