Explorar el Código

Fix env edgecase

ashuntu hace 2 años
padre
commit
3f969bbf1f
Se han modificado 1 ficheros con 1 adiciones y 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;
 		}
 	}