From 942463f2a3b970a9cc730d8dd58decaff8924178 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 8 Jul 2021 11:55:45 -0400 Subject: Remove redundant null check in serd_env_set_base_uri() The env parameter here is declared as nonnull in the API, so it is an error to call it with NULL (which clang can statically flag as a warning). --- src/env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/env.c b/src/env.c index bea38a6d..bc6a159f 100644 --- a/src/env.c +++ b/src/env.c @@ -74,7 +74,7 @@ serd_env_base_uri(const SerdEnv* const env, SerdURIView* const out) SerdStatus serd_env_set_base_uri(SerdEnv* const env, const SerdNode* const uri) { - if (!env || (uri && uri->type != SERD_URI)) { + if (uri && uri->type != SERD_URI) { return SERD_ERR_BAD_ARG; } -- cgit v1.2.1