summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2013-05-08 15:00:00 +0200
committerLinus Nordberg <linus@nordberg.se>2013-05-08 17:04:51 +0200
commita64a823a8759a7a7223d4ca1a0f0af0bb1d616fa (patch)
treef057e4c2c276c801165a8f3f8973b3b9bf1d1e3b
parent25261df09d801d070df4c31e11e1702614546090 (diff)
Add an assert in error handling code.
-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);