# HG changeset patch # User erik # Date 1280532853 0 # Node ID 7923e813ec611ed5094e361fb5154c2178c50cdc # Parent 51be513f1a1df4e07cd97dd74e46a123570665f6 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. diff -r 51be513f1a1d -r 7923e813ec61 vm/vm.c --- 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])