diff options
author | Linus Nordberg <linus@nordberg.se> | 2013-05-08 15:00:00 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2013-05-08 17:04:51 +0200 |
commit | a64a823a8759a7a7223d4ca1a0f0af0bb1d616fa (patch) | |
tree | f057e4c2c276c801165a8f3f8973b3b9bf1d1e3b | |
parent | 25261df09d801d070df4c31e11e1702614546090 (diff) |
Add an assert in error handling code.
-rw-r--r-- | lib/err.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |