]> granicus.if.org Git - php/commitdiff
fix arg type
authorAnatol Belski <ab@php.net>
Mon, 29 Feb 2016 14:23:53 +0000 (15:23 +0100)
committerAnatol Belski <ab@php.net>
Mon, 29 Feb 2016 14:23:53 +0000 (15:23 +0100)
ext/pdo_dblib/dblib_stmt.c

index 19967ef7dad5573428649cf99c55c4dbc4b1db20..2e3e881943375ff2487f264a9fcd8ead4df28abb 100644 (file)
@@ -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;