aboutsummaryrefslogtreecommitdiffstats
path: root/src/env.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-30 17:20:21 +0200
committerDavid Robillard <d@drobilla.net>2018-09-30 17:20:21 +0200
commitf0bc2210cdcbb0d641e3a723ca23409afe615535 (patch)
tree98ac3edb553ef013096d204f633089a2e7af7744 /src/env.c
parenta5b040e33d00a8d6eab1ba8167f5ccaecbbfbc75 (diff)
downloadserd-f0bc2210cdcbb0d641e3a723ca23409afe615535.tar.gz
serd-f0bc2210cdcbb0d641e3a723ca23409afe615535.tar.bz2
serd-f0bc2210cdcbb0d641e3a723ca23409afe615535.zip
Fix calloc argument order
Diffstat (limited to 'src/env.c')
-rw-r--r--src/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env.c b/src/env.c
index dca34365..b26c6b20 100644
--- a/src/env.c
+++ b/src/env.c
@@ -34,7 +34,7 @@ struct SerdEnvImpl {
SerdEnv*
serd_env_new(const SerdNode* base_uri)
{
- SerdEnv* env = (SerdEnv*)calloc(sizeof(struct SerdEnvImpl), 1);
+ SerdEnv* env = (SerdEnv*)calloc(1, sizeof(struct SerdEnvImpl));
if (env && base_uri) {
serd_env_set_base_uri(env, base_uri);
}