shithub: dumb

Download patch

ref: 8ea3282ceaf9e2915d60310fc74fed6951e2b754
parent: f3d6e8f9b1718b1ec1791c49150a0e140ea83911
author: Chris Moeller <kode54@gmail.com>
date: Tue Jan 6 17:44:59 EST 2015

Fixed STM trying to seek and read non-existing samples

--- a/dumb/src/it/readstm.c
+++ b/dumb/src/it/readstm.c
@@ -61,6 +61,7 @@
 		/* Looks like no-existy. */
 		sample->flags &= ~IT_SAMPLE_EXISTS;
 		sample->length = 0;
+		*offset = 0;
 		return dumbfile_error( f );
 	}