Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mx_mysql: mx_mysql_statement_close*: Allow NULL
Allow mx_mysql_statement_close* functions to be called with a pointer to a NULL value. This makes the daemon more robust when the functions are used as cleanup functions, e.g. __attribute__((cleanup(mx_mysql_statement_close))) struct mx_mysql_stmt *stmt = mx_mysql_statement_prepare(mysql,"..."); if (!stmt) { fprintf(stderr, "mx_mysql_stmt_prepare: %s\n", mx_mysql_error()); return; }
- Loading branch information