Feature #1848 ยป 0050-luasql-Fix-comment-typos-found-by-codespell.patch
| dependencies/luasql/Version.txt | ||
|---|---|---|
|
Fix has been submitted to upstream.
|
||
|
- Cleared trailing spaces
|
||
|
Equivalent patch submitted to upstream.
|
||
|
- Fixed comment typos found by codespell
|
||
|
Fix has been submitted to upstream.
|
||
|
Only the files needed by freeciv are included here, not entire luasql
|
||
|
source directory hierarchy.
|
||
| dependencies/luasql/src/ls_mysql.c | ||
|---|---|---|
|
/*
|
||
|
** Closes the cursos and nullify all structure fields.
|
||
|
** Closes the cursor and nullify all structure fields.
|
||
|
*/
|
||
|
static void cur_nullify (lua_State *L, cur_data *cur) {
|
||
|
/* Nullify structure fields. */
|
||
| ... | ... | |
|
luaL_unref (L, LUA_REGISTRYINDEX, cur->coltypes);
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
** Get another row of the given cursor.
|
||
|
*/
|
||
| ... | ... | |
|
const char *unix_socket = luaL_optstring(L, 7, NULL);
|
||
|
const long client_flag = (long)luaL_optinteger(L, 8, 0);
|
||
|
MYSQL *conn;
|
||
|
getenvironment(L); /* validade environment */
|
||
|
getenvironment(L); /* validate environment */
|
||
|
/* Try to init the connection object. */
|
||
|
conn = mysql_init(NULL);
|
||