# HG changeset patch # User rathann # Date 1355087594 0 # Node ID fe65a31e707a9342575ef3e91a110882fdb81cd2 # Parent af0b6a8bf7e94b379b3aac24f7853880d606e492 Fix failed assertion when there's no menu. Patch by Erik Hovland. diff -r af0b6a8bf7e9 -r fe65a31e707a vm/vm.c --- a/vm/vm.c Fri Oct 07 17:06:24 2011 +0000 +++ b/vm/vm.c Sun Dec 09 21:13:14 2012 +0000 @@ -1762,7 +1762,8 @@ pgcit_t *pgcit; pgcit = get_PGCIT(vm); - assert(pgcit != NULL); /* ?? Make this return -1 instead */ + if (pgcit != NULL) + return 0; if(pgcN < 1 || pgcN > pgcit->nr_of_pgci_srp) { #ifdef TRACE