]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/libndb/dnsquery.c
merge
[plan9front.git] / sys / src / libndb / dnsquery.c
index fbb9680e12d0c99d6777d497c0c2763cc2e0a8e3..634756b76d25a8e433075bebaf2f08fcbac7f8f9 100644 (file)
@@ -129,17 +129,14 @@ doquery(int fd, char *dn, char *type)
 
                t = _ndbparseline(buf);
                if(t != nil){
-                       if(first)
+                       if(first != nil)
                                last->entry = t;
                        else
                                first = t;
                        last = t;
-
-                       while(last->entry)
+                       while(last->entry != nil)
                                last = last->entry;
                }
        }
-
-       ndbsetmalloctag(first, getcallerpc(&fd));
        return first;
 }