core/vm/sp_vm_basecontext.cpp
changeset 790 9b1474d03470
parent 763 bb7c98076764
child 938 8e95112b2501
     1.1 --- a/core/vm/sp_vm_basecontext.cpp	Sun May 13 22:36:22 2007 +0000
     1.2 +++ b/core/vm/sp_vm_basecontext.cpp	Mon May 14 04:46:06 2007 +0000
     1.3 @@ -194,6 +194,13 @@
     1.4  		return SP_ERROR_NOT_RUNNABLE;
     1.5  	}
     1.6  
     1.7 +	/* tada, prevent a crash */
     1.8 +	cell_t _ignore_result;
     1.9 +	if (!result)
    1.10 +	{
    1.11 +		result = &_ignore_result;
    1.12 +	}
    1.13 +
    1.14  	IVirtualMachine *vm = (IVirtualMachine *)ctx->vmbase;
    1.15  
    1.16  	uint32_t pushcount = ctx->pushcount;