aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/env.c2
1 files changed, 1 insertions, 1 deletions
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;
}