Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

lib/transform: avoid empty charmap entry

albertony62a9727ab52e
diff --git a/lib/transform/cmap.go b/lib/transform/cmap.go
index 8fac5da63..b5341c63e 100644
--- a/lib/transform/cmap.go
+++ b/lib/transform/cmap.go
@@ -20,7 +20,7 @@ type CharmapChoices = fs.Enum[cmapChoices]
type cmapChoices struct{}
func (cmapChoices) Choices() []string {
- choices := make([]string, 1)
+ choices := []string{}
i := 0
for _, enc := range charmap.All {
c, ok := enc.(*charmap.Charmap)