From a64a823a8759a7a7223d4ca1a0f0af0bb1d616fa Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 8 May 2013 15:00:00 +0200 Subject: Add an assert in error handling code. --- lib/err.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.1