From 3f969bbf1fe17b2c19ac0548c9d8f5c576b16904 Mon Sep 17 00:00:00 2001 From: ashuntu <101582426+ashuntu@users.noreply.github.com> Date: Mon, 12 Sep 2022 10:50:59 -0500 Subject: [PATCH] Fix env edgecase --- lib/client_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client_impl.c b/lib/client_impl.c index c3e1234..d1557e4 100644 --- a/lib/client_impl.c +++ b/lib/client_impl.c @@ -121,7 +121,7 @@ static int in_sandbox(void) r = lstat("/.flatpak-info", &sb); status = r == 0 && sb.st_size > 0; - if (getenv("SNAP")) { + if (getenv("SNAP") != NULL) { status = 1; } }