Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swen90006-a2-2019
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Li Zixuan
swen90006-a2-2019
Commits
9088064a
Commit
9088064a
authored
Sep 6, 2019
by
Toby Murray
Browse files
Options
Downloads
Patches
Plain Diff
remove debugging junk that shouldn't have been committed
parent
2a9dea01
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/passbook.c
+0
-6
0 additions, 6 deletions
src/passbook.c
with
0 additions
and
6 deletions
src/passbook.c
+
0
−
6
View file @
9088064a
...
@@ -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
));
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment