From cf7dc2c676f61de2a019b1ecc8cf9e736e488c2e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 31 Mar 2013 17:00:07 +0000 Subject: Remove unnecessary branch condition. git-svn-id: http://svn.drobilla.net/serd/trunk@447 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- src/serd_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/serd_internal.h b/src/serd_internal.h index 3a43dd29..4c3e6397 100644 --- a/src/serd_internal.h +++ b/src/serd_internal.h @@ -269,7 +269,7 @@ uri_path_at(const SerdURI* uri, size_t i) static inline bool uri_is_under(const SerdURI* uri, const SerdURI* root) { - if (!root || !uri || !root->scheme.len || + if (!root || !root->scheme.len || !chunk_equals(&root->scheme, &uri->scheme) || !chunk_equals(&root->authority, &uri->authority)) { return false; -- cgit v1.2.1