浏览代码

Add an assert to make tools happier.

svn:r16782
Nick Mathewson 17 年之前
父节点
当前提交
a345506672
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/common/container.c

+ 2 - 0
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) {
     if (!*end) {
       next = NULL;
       next = NULL;
     } else if (sep) {
     } else if (sep) {