diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-29 17:05:01 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-08-29 17:05:01 +0200 |
commit | 788bd1bfb6b93d6d6a2742778ecbce75eed0abce (patch) | |
tree | 231f3d1a0d34b2e5384e8dbf6d6740d16ada079d | |
parent | 853376ab8afeea0fff5a1b68111594de9f7fb081 (diff) | |
download | raptor-788bd1bfb6b93d6d6a2742778ecbce75eed0abce.tar.gz |
-fsanitize=nonnull-attribute
-rw-r--r-- | src/raptor_uri.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/raptor_uri.c b/src/raptor_uri.c index 85fdefa2..42ed5c11 100644 --- a/src/raptor_uri.c +++ b/src/raptor_uri.c @@ -1386,9 +1386,10 @@ raptor_uri_to_relative_counted_uri_string(raptor_uri *base_uri, !strncmp((const char*)base_detail->scheme, (const char*)reference_detail->scheme, base_detail->scheme_len) && - !strncmp((const char*)base_detail->authority, + (base_detail->authority_len == 0 || + !strncmp((const char*)base_detail->authority, (const char*)reference_detail->authority, - base_detail->authority_len)) { + base_detail->authority_len))) { if(!base_detail->path) { if(reference_detail->path) { |