diff options
Diffstat (limited to 'src/references.c')
-rw-r--r-- | src/references.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/references.c b/src/references.c index 0ae7961..6759c2c 100644 --- a/src/references.c +++ b/src/references.c @@ -60,7 +60,7 @@ static void add_reference(reference_map *map, reference* ref) while (t) { if (t->hash == ref->hash && - !strcmp((char *)t->label, (char *)ref->label)) { + !strcmp((char *)t->label, (char *)ref->label)) { reference_free(ref); return; } @@ -99,10 +99,10 @@ reference* reference_lookup(reference_map *map, chunk *label) reference *ref = NULL; unsigned char *norm; unsigned int hash; - + if (map == NULL) return NULL; - + norm = normalize_reference(label); if (norm == NULL) return NULL; @@ -112,7 +112,7 @@ reference* reference_lookup(reference_map *map, chunk *label) while (ref) { if (ref->hash == hash && - !strcmp((char *)ref->label, (char *)norm)) + !strcmp((char *)ref->label, (char *)norm)) break; ref = ref->next; } @@ -146,4 +146,3 @@ reference_map *reference_map_new(void) { return calloc(1, sizeof(reference_map)); } - |