changeset 418:fe65a31e707a src

Fix failed assertion when there's no menu. Patch by Erik Hovland.
author rathann
date Sun, 09 Dec 2012 21:13:14 +0000
parents af0b6a8bf7e9
children 8c87207b73ac
files vm/vm.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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