Explorar o código

Add an assert to make tools happier.

svn:r16782
Nick Mathewson %!s(int64=17) %!d(string=hai) anos
pai
achega
a345506672
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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) {