From 193a3b41976b600ed5ed945e678f336b75da4b0c Mon Sep 17 00:00:00 2001 From: Marius Tolzmann Date: Mon, 24 Aug 2015 14:09:45 +0200 Subject: [PATCH] mx_mysql: Fix wrong assertion --- mx_mysql.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mx_mysql.c b/mx_mysql.c index 9764945..7cebcf9 100644 --- a/mx_mysql.c +++ b/mx_mysql.c @@ -1274,7 +1274,8 @@ inline int mx_mysql_stmt_param_count_get(struct mx_mysql_stmt *stmt, unsigned lo int mx_mysql_bind_cleanup(struct mx_mysql_bind *bind) { - mx_assert_return_minus_errno(bind, EINVAL); + if (!bind) + return 0; mx_free_null(bind->bind); mx_free_null(bind->data);