]> granicus.if.org Git - php/commitdiff
MFH: fix win32 compile
authorRob Richards <rrichards@php.net>
Fri, 25 Jan 2008 15:54:58 +0000 (15:54 +0000)
committerRob Richards <rrichards@php.net>
Fri, 25 Jan 2008 15:54:58 +0000 (15:54 +0000)
ext/mysqlnd/mysqlnd_result.c

index 9a19f397891130dbaede9c2dd732ff55ab43a6b4..dad993ea2a2c10533d7f47c4c3e03f16b3709cc5 100644 (file)
@@ -766,9 +766,9 @@ mysqlnd_fetch_row_buffered_c(MYSQLND_RES *result TSRMLS_DC)
        if (result->data->data_cursor &&
                (result->data->data_cursor - result->data->data) < result->data->row_count)
        {
-               ret = mnd_malloc(result->field_count * sizeof(char *));
-
                zval **current_row = *result->data->data_cursor;
+
+               ret = mnd_malloc(result->field_count * sizeof(char *));
                for (i = 0; i < result->field_count; i++) {
                        zval *data = current_row[i];
                        if (Z_TYPE_P(data) != IS_NULL) {