From: Linus Nordberg Date: Wed, 8 May 2013 13:00:00 +0000 (+0200) Subject: Add an assert in error handling code. X-Git-Tag: libradsec-0.0.4~31 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=libradsec.git;a=commitdiff_plain;h=a64a823a8759a7a7223d4ca1a0f0af0bb1d616fa Add an assert in error handling code. --- diff --git a/lib/err.c b/lib/err.c index 432a67e..854a4a9 100644 --- a/lib/err.c +++ b/lib/err.c @@ -158,6 +158,8 @@ rs_err_ctx_push_fl (struct rs_context *ctx, int code, const char *file, int err_conn_push_err (struct rs_connection *conn, struct rs_error *err) { + assert (conn); + assert (err); if (conn->err) rs_err_free (conn->err);