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

about: fix crash if backend returns a nil usage

Nick Craig-Wood9950bb9b7ce4
diff --git a/cmd/about/about.go b/cmd/about/about.go
index 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, eg
if 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")