]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_cmds.c
-ServerList: Changed some if-else-chains to switch constructs.
[xonotic/darkplaces.git] / prvm_cmds.c
index 1992efb9a49e84e27c4268ad067a3e891157cfbc..e306d917908b56cf06a93d154d02d187f3b6bb7b 100644 (file)
@@ -2025,6 +2025,8 @@ void VM_strunzone(void)
        VM_SAFEPARMCOUNT(1,VM_strunzone);
 
        str = PRVM_G_STRING(OFS_PARM0);
+       if( !str )
+               PRVM_ERROR( "VM_strunzone: s%: Null string passed!", PRVM_NAME );
        if( developer.integer && !Mem_IsAllocated( VM_STRINGS_MEMPOOL, str ) )
                PRVM_ERROR( "VM_strunzone: Zone string already freed in %s!", PRVM_NAME );
        else