Mercurial > libdvdnav.hg
changeset 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 | 51be513f1a1d |
children | 9b8bfc56a7fe |
files | vm/vm.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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])