]> granicus.if.org Git - php/commitdiff
Fixed a typo.
authorIlia Alshanetsky <iliaa@php.net>
Fri, 14 Feb 2003 18:27:20 +0000 (18:27 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 14 Feb 2003 18:27:20 +0000 (18:27 +0000)
ext/mysqli/mysqli_nonapi.c

index 7ac277b36d80816b2adfb340e3ceb5951f7c2ad5..f49ce189bb5f4b7f1fb23b3fe529a4763f4e3ea2 100644 (file)
@@ -60,7 +60,8 @@ PHP_FUNCTION(mysqli_connect)
 
        if (mysql_real_connect(mysql,hostname,username,passwd,dbname,port,socket,0) == NULL) {
                /* Save error messages */
-               php_mysqli_set_error(mysql_errno(mysql), (char *mysql_error(mysql) TSRMLS_CC);
+
+               php_mysqli_set_error(mysql_errno(mysql), (char *) mysql_error(mysql) TSRMLS_CC);
 
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", mysql_error(mysql));
                /* free mysql structure */