"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
about: fix crash if backend returns a nil usage
Nick Craig-Wood9950bb9b7ce4
diff --git a/cmd/about/about.go b/cmd/about/about.goindex 81b7493f1..4b29afa8b 100644--- a/cmd/about/about.go+++ b/cmd/about/about.go@@ -95,6 +95,9 @@ Use the --json flag for a computer readable output, egif err != nil {return errors.Wrap(err, "About call failed")}+ if u == nil {+ return errors.New("nil usage returned")+ }if jsonOutput {out := json.NewEncoder(os.Stdout)out.SetIndent("", "\t")