Browse Source

Fix env edgecase

ashuntu 2 years ago
parent
commit
3f969bbf1f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/client_impl.c

+ 1 - 1
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;
 		}
 	}