]> granicus.if.org Git - php/commitdiff
ptr needed here
authorPierre Joye <pierre.php@gmail.com>
Wed, 14 May 2014 18:05:54 +0000 (20:05 +0200)
committerPierre Joye <pierre.php@gmail.com>
Wed, 14 May 2014 18:05:54 +0000 (20:05 +0200)
ext/standard/dns_win32.c

index bf2100c1e8d0c6052fae64e52630895468256ac9..f255ebba63421e6b474fb23f670e2025ab72399f 100644 (file)
@@ -213,7 +213,7 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, int raw,
 
                                add_assoc_string(subarray, "type", "TXT");
                                
-                               array_init(entries);
+                               array_init(&entries);
                                
                                for (i = 0; i < count; i++) {
                                        txt_len += strlen(data_txt->pStringArray[i]) + 1;
@@ -227,7 +227,7 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, int raw,
                                        add_next_index_stringl(&entries, data_txt->pStringArray[i], len);
                                        txt_dst += len;
                                }
-                               tct->len = txt_dst - txt->val;
+                               txt->len = txt_dst - txt->val;
                                add_assoc_str(subarray, "txt", txt);
                                add_assoc_zval(subarray, "entries", &entries);
                        }