Skip to content

Commit

Permalink
Corrected indentation, changed spaces for tabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
echiesse committed Mar 22, 2016
1 parent fa8858f commit 72cf32d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ls_postgres.c
Expand Up @@ -373,15 +373,15 @@ static int conn_escape (lua_State *L) {
const char *from = luaL_checklstring (L, 2, &len);
char *to = malloc(len*sizeof(char)*2+1);
int error;
int ret = 1;
int ret = 1;
len = PQescapeStringConn (conn->pg_conn, to, from, len, &error);
if (error == 0) { /* success ! */
lua_pushlstring (L, to, len);
} else {
} else {
ret = luasql_failmsg (L, "cannot escape string. PostgreSQL: ", PQerrorMessage (conn->pg_conn));
}
free(to);
return ret;
}
free(to);
return ret;
}


Expand Down

0 comments on commit 72cf32d

Please sign in to comment.