opnsense-ports/databases/mysql2odbc/files/patch-libfakesql.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

20 lines
528 B
C

--- libfakesql.c.orig Sat Dec 16 16:28:53 2006
+++ libfakesql.c Sat Dec 16 16:30:32 2006
@@ -127,7 +127,7 @@
{
TSQLPrivate *pDB;
- DBOF(mysql) = pDB = (TSQLPrivate *) calloc (1, sizeof (TSQLPrivate));
+ mysql->net.vio = pDB = (TSQLPrivate *) calloc (1, sizeof (TSQLPrivate));
if (pDB == NULL)
{
_set_error (mysql, CR_OUT_OF_MEMORY);
@@ -166,7 +166,7 @@
pDB->hStmt = SQL_NULL_HSTMT;
pDB->bConnected = 0;
free (pDB);
- DBOF(mysql) = NULL;
+ mysql->net.vio = NULL;
}
}