Re: com php-src: fix sizeof size: ext/mysqlnd/mysqlnd_result.c
| From: | Yasuo Ohgaki | Date: | Sun, 01 Feb 2015 22:06:00 +0000 |
| Subject: | Re: com php-src: fix sizeof size: ext/mysqlnd/mysqlnd_result.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-84558@lists.php.net to get a copy of this message | ||
Hi Stas,
I'm just curious. Does this fix the random test failures on master?
--
Yasuo Ohgaki
yohgaki@ohgaki.net
On Mon, Feb 2, 2015 at 5:40 AM, Stanislav Malyshev <stas@php.net> wrote:
> Commit: 7efbd70b034890df171cc0c48363f99121f0c19e
> Author: Stanislav Malyshev <stas@php.net> Sun, 1 Feb 2015
> 12:40:38 -0800
> Parents: 94d6cb4a78956ac1505dc4141f052f7146114d74
> Branches: PHP-5.4 PHP-5.5 PHP-5.6 master
>
> Link:
>
> http://git.php.net/?p=php-src.git;a=commitdiff;h=7efbd70b034890df171cc0c48363f99121f0c19e
>
> Log:
> fix sizeof size
>
> Changed paths:
> M ext/mysqlnd/mysqlnd_result.c
>
>
> Diff:
> diff --git a/ext/mysqlnd/mysqlnd_result.c b/ext/mysqlnd/mysqlnd_result.c
> index bb4dc09..2b5b892 100644
> --- a/ext/mysqlnd/mysqlnd_result.c
> +++ b/ext/mysqlnd/mysqlnd_result.c
> @@ -518,7 +518,7 @@ mysqlnd_query_read_result_set_header(MYSQLND_CONN_DATA
> * conn, MYSQLND_STMT * s
> conn->current_result =
> NULL;
> } else {
> stmt->result = NULL;
> - memset(stmt, 0,
> sizeof(MYSQLND_STMT));
> + memset(stmt, 0,
> sizeof(*stmt));
> stmt->state =
> MYSQLND_STMT_INITTED;
> }
> } else {
>
>
> --
> PHP CVS Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>