view src/typemap @ 19675:bee179e81f28 v8.2.0394

patch 8.2.0394: Coverity complains about using NULL pointer Commit: https://github.com/vim/vim/commit/7f009dfa064240d9024b76212535a35231912511 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 16 20:27:38 2020 +0100 patch 8.2.0394: Coverity complains about using NULL pointer Problem: Coverity complains about using NULL pointer. Solution: Use empty string when option value is NULL.
author Bram Moolenaar <Bram@vim.org>
date Mon, 16 Mar 2020 20:30:04 +0100
parents dec4338a7da2
children
line wrap: on
line source

TYPEMAP
VIWIN	T_VIOBJNOMUNGE
VIBUF	T_VIOBJNOMUNGE

INPUT
T_VIOBJNOMUNGE
	if (sv_isa($arg, \"${ntype}\")) {
	    IV tmp = SvIV((SV*)SvRV($arg));
	    $var = INT2PTR($type, tmp);
	    if (!tmp)
		croak(\"$ntype no longer exists\");
	}
	else
	    croak(\"$var is not of type ${ntype}\")