Zero the parameters if no results found

This commit is contained in:
2020-10-15 11:29:31 +01:00
parent b5c05732de
commit 663d8e4f28
4 changed files with 8 additions and 0 deletions

View File

@@ -111,6 +111,8 @@ int doUsersQuery(stored_conn *sconn, modb_ref *modb, where_builder *wb,
// Zero row result
if (qry_ret == 0) {
freeColumns(col_data, n_cols);
*users = 0;
*n_users = 0;
return 0;
}