From 9088064a000204acf39cff43245d573651a3d235 Mon Sep 17 00:00:00 2001
From: Toby Murray <toby.murray@unimelb.edu.au>
Date: Fri, 6 Sep 2019 21:53:44 +1000
Subject: [PATCH] remove debugging junk that shouldn't have been committed

---
 src/passbook.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/passbook.c b/src/passbook.c
index 072b1ce..64ca943 100644
--- a/src/passbook.c
+++ b/src/passbook.c
@@ -103,11 +103,6 @@ static node_t * node_insert(node_t *p, node_t *q){
   node_t ** new = NULL;
   node_t * const start = p;
   while (new == NULL) {
-    assert(q->url != NULL);
-    assert(p->url != NULL);
-    printf("Addr of dodgy node: %08x\n",(unsigned int)q);
-    strlen(q->url);  // SEGV here
-    strlen(p->url);
     int ret = strcmp(q->url,p->url);
     if (ret == 0){
       assert (q->left == NULL && q->right == NULL && "illegal insertion");
@@ -137,7 +132,6 @@ static node_t * node_insert(node_t *p, node_t *q){
 /* returns a pointer to the tree with the node added or with the existing
    node updated if it was  already present */
 static node_t * put(node_t *p, const char *url, const cred_t cred){
-  strlen(url);
   return node_insert(p,node_new(url,cred));
 }
 
-- 
GitLab