xbps_dbg_printf{,_append}: add assertion
This commit is contained in:
parent
9be9679b5d
commit
802a6eae09
@ -56,6 +56,8 @@ xbps_dbg_printf_append(struct xbps_handle *xhp, const char *fmt, ...)
|
|||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
|
assert(xhp);
|
||||||
|
|
||||||
if ((xhp->flags & XBPS_FLAG_DEBUG) == 0)
|
if ((xhp->flags & XBPS_FLAG_DEBUG) == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -69,6 +71,8 @@ xbps_dbg_printf(struct xbps_handle *xhp, const char *fmt, ...)
|
|||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
|
assert(xhp);
|
||||||
|
|
||||||
if ((xhp->flags & XBPS_FLAG_DEBUG) == 0)
|
if ((xhp->flags & XBPS_FLAG_DEBUG) == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user