summaryrefslogtreecommitdiff
path: root/ext/odbc/php_odbc.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-03-12 04:46:15 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-03-12 04:46:15 +0000
commit22e1885d29064172523f3a6a7b830478fa1ddef9 (patch)
treea71a0314546c10a5a43ce1ca7f2be27587ef1960 /ext/odbc/php_odbc.c
parent900584ec7fb8ee75d2cff131cbe2f21927e12a4e (diff)
downloadphp-git-22e1885d29064172523f3a6a7b830478fa1ddef9.tar.gz
MFH
Diffstat (limited to 'ext/odbc/php_odbc.c')
-rw-r--r--ext/odbc/php_odbc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index ec8952a1e8..545346dc65 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -2174,7 +2174,7 @@ void odbc_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
pval **pv_db, **pv_uid, **pv_pwd, **pv_opt;
odbc_connection *db_conn;
char *hashed_details;
- int hashed_len, len, cur_opt;
+ int hashed_len, cur_opt;
/* Now an optional 4th parameter specifying the cursor type
* defaulting to the cursors default
@@ -2220,7 +2220,7 @@ void odbc_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
persistent = 0;
}
- hashed_len = spprintf(hashed_details, 0, "%s_%s_%s_%s_%d", ODBC_TYPE, db, uid, pwd, cur_opt);
+ hashed_len = spprintf(&hashed_details, 0, "%s_%s_%s_%s_%d", ODBC_TYPE, db, uid, pwd, cur_opt);
/* FIXME the idea of checking to see if our connection is already persistent
is good, but it adds a lot of overhead to non-persistent connections. We