summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/err.c2
1 files changed, 2 insertions, 0 deletions
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);