Prechádzať zdrojové kódy

Add an assert to make tools happier.

svn:r16782
Nick Mathewson 17 rokov pred
rodič
commit
a345506672
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  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) {