diff vm/vm.c @ 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 34e632fb6a39
children 3d942df13d3a
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