]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Add an assert()
authorAndreas Öman <andreas@lonelycoder.com>
Tue, 26 Oct 2010 17:34:15 +0000 (17:34 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Tue, 26 Oct 2010 17:34:15 +0000 (17:34 +0000)
src/parsers.c

index 686b35fbe7b95d479f431ed58908358119b15afe..42550ad11748a7d7cae9062cd5db2e896aab6fdd 100644 (file)
@@ -332,6 +332,8 @@ parse_sc(th_transport_t *t, th_stream_t *st, const uint8_t *data, int len,
       r = 1;
     }
 
+    assert(st->st_buf.sb_data != NULL);
+
     if(r == 2) {
       // Drop packet
       st->st_buf.sb_ptr = st->st_startcode_offset;