瀏覽代碼

Add an assert to make tools happier.

svn:r16782
Nick Mathewson 15 年之前
父節點
當前提交
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) {
       next = NULL;
     } else if (sep) {