Skip to content

Commit 35be439

Browse files
committed
fix arg type
1 parent 7d73252 commit 35be439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pdo_dblib/dblib_stmt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ static int pdo_dblib_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC)
211211
col->name = estrdup(fname);
212212
col->namelen = strlen(col->name);
213213
} else {
214-
col->namelen = spprintf(&col->name, NULL, "computed%d", colno);
214+
col->namelen = spprintf(&col->name, 0, "computed%d", colno);
215215
}
216216
col->maxlen = dbcollen(H->link, colno+1);
217217
col->param_type = PDO_PARAM_STR;

0 commit comments

Comments
 (0)