[GB.DB.ODBC]

* BUG: Don't crash when trying to open a database if the host is void.


git-svn-id: svn://localhost/gambas/trunk@7415 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2015-10-17 02:04:46 +00:00
parent bc6493120e
commit 81a4022fba

View File

@ -544,7 +544,7 @@ fflush(stderr);
retcode = SQLSetConnectAttr(odbc->odbcHandle, SQL_ATTR_AUTOCOMMIT, (void *) SQL_AUTOCOMMIT_ON, SQL_NTS);
odbc->dsn_name = malloc(sizeof(char) * strlen(host));
strcpy(odbc->dsn_name, desc->host);
strcpy(odbc->dsn_name, host);
odbc->user_name = malloc(sizeof(char) * strlen(user));
strcpy(odbc->user_name, user);