Fix env edgecase

This commit is contained in:
ashuntu 2022-09-12 10:50:59 -05:00 committed by afayaz-feral
parent 1ca2daf47f
commit 3f969bbf1f

View File

@ -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;
}
}