Explorar o código

Fix env edgecase

ashuntu %!s(int64=2) %!d(string=hai) anos
pai
achega
3f969bbf1f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 		}
 	}