diff --git a/sources/instance.c b/sources/instance.c index 76eae913..95704bf5 100644 --- a/sources/instance.c +++ b/sources/instance.c @@ -182,13 +182,13 @@ int od_instance_main(od_instance_t *instance, int argc, char **argv) /* create pid file */ if (instance->config.pid_file) { rc = od_pid_create(&instance->pid, instance->config.pid_file); - if (rc == -1) { - od_error(&instance->logger, "init", NULL, NULL, - "failed to create pid file %s: %s", - instance->config.pid_file, - strerror(errno)); - goto error; - } + if (rc == -1) { + od_error(&instance->logger, "init", NULL, NULL, + "failed to create pid file %s: %s", + instance->config.pid_file, + strerror(errno)); + goto error; + } } /* start system machine thread */