On Mon, 8 Jan 2018 09:34:23 -0600 Keith Wiles <keith.wiles at intel.com> wrote: > + if (!m || !f) { > + fprintf(stderr, "MBUF and/or FILE pointer is NULL\n"); > + return; > + } Calling with f of NULL is user error, let it still die in fprintf.