]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
erik fix
authorMiek Gieben <miekg@NLnetLabs.nl>
Thu, 9 Dec 2004 14:40:10 +0000 (14:40 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Thu, 9 Dec 2004 14:40:10 +0000 (14:40 +0000)
rr.c
run-test0.c

diff --git a/rr.c b/rr.c
index 18ef1d01017933927665c1918b739caa949d5795..5c24028112d034dd50629869417b27121b8cab78 100644 (file)
--- a/rr.c
+++ b/rr.c
@@ -29,6 +29,7 @@ rr_new(void)
                 return NULL;
 
        rr_set_rd_count(rr, 0);
+       rr->rdata_fields = NULL; /* XXX */
         return(rr);
 }
 
index 495c2beaaa0fc7361ee0f5f6c68627b667ddb1a4..7f340b8dc7762f8bb8d999a1f385f0f1bfb8c196 100644 (file)
@@ -17,6 +17,7 @@ main(void)
        t_rr *rr;
 
        rr = rr_new();
+
        rd_f = rd_field_new(20, RD_DNAME_T, (uint8_t*)"hallo.nl");
        xprintf_rd_field(rd_f);