Skip to content
Snippets Groups Projects
Commit 9088064a authored by Toby Murray's avatar Toby Murray
Browse files

remove debugging junk that shouldn't have been committed

parent 2a9dea01
Branches
No related tags found
No related merge requests found
...@@ -103,11 +103,6 @@ static node_t * node_insert(node_t *p, node_t *q){ ...@@ -103,11 +103,6 @@ static node_t * node_insert(node_t *p, node_t *q){
node_t ** new = NULL; node_t ** new = NULL;
node_t * const start = p; node_t * const start = p;
while (new == NULL) { 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); int ret = strcmp(q->url,p->url);
if (ret == 0){ if (ret == 0){
assert (q->left == NULL && q->right == NULL && "illegal insertion"); assert (q->left == NULL && q->right == NULL && "illegal insertion");
...@@ -137,7 +132,6 @@ static node_t * node_insert(node_t *p, node_t *q){ ...@@ -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 /* returns a pointer to the tree with the node added or with the existing
node updated if it was already present */ node updated if it was already present */
static node_t * put(node_t *p, const char *url, const cred_t cred){ static node_t * put(node_t *p, const char *url, const cred_t cred){
strlen(url);
return node_insert(p,node_new(url,cred)); return node_insert(p,node_new(url,cred));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment