aboutsummaryrefslogtreecommitdiffstats
path: root/src/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/env.c')
-rw-r--r--src/env.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/env.c b/src/env.c
index 9a3d2ea5..7a9ae8fa 100644
--- a/src/env.c
+++ b/src/env.c
@@ -1,4 +1,4 @@
-// Copyright 2011-2020 David Robillard <d@drobilla.net>
+// Copyright 2011-2023 David Robillard <d@drobilla.net>
// SPDX-License-Identifier: ISC
#include "serd/serd.h"
@@ -65,7 +65,7 @@ serd_env_get_base_uri(const SerdEnv* const env, SerdURI* 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;
}