Mercurial > libdvdnav.hg
diff vm/vm.c @ 408:7923e813ec61 src
Make sure part is initialized
part can be left untouched by vm_get_current_title. Having it be
uninitialized and assigned to PTTN_REG would likely be a bad idea.
author | erik |
---|---|
date | Fri, 30 Jul 2010 23:34:13 +0000 |
parents | d16ee5945580 |
children | 9b8bfc56a7fe |
line wrap: on
line diff
--- a/vm/vm.c Fri Jul 30 23:34:11 2010 +0000 +++ b/vm/vm.c Fri Jul 30 23:34:13 2010 +0000 @@ -1689,7 +1689,7 @@ /* Figure out the correct pgN from the cell and update (vm->state). */ static int set_PGN(vm_t *vm) { int new_pgN = 0; - int dummy, part; + int dummy, part = 0; while(new_pgN < (vm->state).pgc->nr_of_programs && (vm->state).cellN >= (vm->state).pgc->program_map[new_pgN])