Преглед изворни кода

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) {
       next = NULL;
     } else if (sep) {