diff --git a/lib/logfmt.c b/lib/logfmt.c index 1e69801..a43e7cf 100644 --- a/lib/logfmt.c +++ b/lib/logfmt.c @@ -641,6 +641,8 @@ void hcl_seterrbfmt (hcl_t* hcl, hcl_errnum_t errnum, const hcl_bch_t* fmt, ...) va_list ap; hcl_fmtout_t fo; + if (hcl->shuterr) return; + hcl->errnum = errnum; hcl->errmsg.len = 0; @@ -658,6 +660,8 @@ void hcl_seterrufmt (hcl_t* hcl, hcl_errnum_t errnum, const hcl_uch_t* fmt, ...) va_list ap; hcl_fmtout_t fo; + if (hcl->shuterr) return; + hcl->errnum = errnum; hcl->errmsg.len = 0; @@ -675,6 +679,8 @@ void hcl_seterrbfmtv (hcl_t* hcl, hcl_errnum_t errnum, const hcl_bch_t* fmt, va_ { hcl_fmtout_t fo; + if (hcl->shuterr) return; + hcl->errnum = errnum; hcl->errmsg.len = 0; @@ -689,6 +695,8 @@ void hcl_seterrufmtv (hcl_t* hcl, hcl_errnum_t errnum, const hcl_uch_t* fmt, va_ { hcl_fmtout_t fo; + if (hcl->shuterr) return; + hcl->errnum = errnum; hcl->errmsg.len = 0;