com php-src: fix arg type: ext/pdo_dblib/dblib_stmt.c
| From: | Anatol Belski | Date: | Mon, 29 Feb 2016 14:23:53 +0000 |
| Subject: | com php-src: fix arg type: ext/pdo_dblib/dblib_stmt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91187@lists.php.net to get a copy of this message | ||
Commit: 35be4398d12108c68664a11cae98ec8c7ef6335e
Author: Anatol Belski <ab@php.net> Mon, 29 Feb 2016 15:23:53 +0100
Parents: 7d7325246c339e5266dac0cc26e02663d568dffd
Branches: PHP-5.6 PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=35be4398d12108c68664a11cae98ec8c7ef6335e
Log:
fix arg type
Changed paths:
M ext/pdo_dblib/dblib_stmt.c
Diff:
diff --git a/ext/pdo_dblib/dblib_stmt.c b/ext/pdo_dblib/dblib_stmt.c
index 19967ef..2e3e881 100644
--- a/ext/pdo_dblib/dblib_stmt.c
+++ b/ext/pdo_dblib/dblib_stmt.c
@@ -211,7 +211,7 @@ static int pdo_dblib_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC)
col->name = estrdup(fname);
col->namelen = strlen(col->name);
} else {
- col->namelen = spprintf(&col->name, NULL, "computed%d", colno);
+ col->namelen = spprintf(&col->name, 0, "computed%d", colno);
}
col->maxlen = dbcollen(H->link, colno+1);
col->param_type = PDO_PARAM_STR;