From: Vincent Pit Date: Sat, 28 Feb 2009 15:26:18 +0000 (+0100) Subject: hv_exists() is enough for vmg_wizard_sig() X-Git-Tag: v0.32~5 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=70ed3b484d6c65160db5685da4ae40580c60f1af;p=perl%2Fmodules%2FVariable-Magic.git hv_exists() is enough for vmg_wizard_sig() --- diff --git a/Magic.xs b/Magic.xs index 1fa6354..590d6af 100644 --- a/Magic.xs +++ b/Magic.xs @@ -1095,7 +1095,7 @@ STATIC U16 vmg_wizard_sig(pTHX_ SV *wiz) { { dMY_CXT; - if (!hv_fetch(MY_CXT.wizards, buf, sprintf(buf, "%u", sig), 0)) + if (!hv_exists(MY_CXT.wizards, buf, sprintf(buf, "%u", sig))) croak(vmg_invalid_wiz); }