Commit f729b62d authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

panwrap: Fix uninitialized use

Signed-off-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
parent 9d83ac0e
......@@ -54,8 +54,6 @@ __rd_dlsym_helper(const char *name)
}
static void __attribute__((constructor)) constructor_util(void) {
const char *env;
log_base = getenv("PANWRAP_OUTPUT");
if (!log_base) {
......@@ -68,7 +66,7 @@ static void __attribute__((constructor)) constructor_util(void) {
if (!log_output) {
fprintf(stderr, "Failed to open %s: %s\n",
env, strerror(errno));
control_name, strerror(errno));
exit(1);
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment