mirror of
https://github.com/rclone/rclone.git
synced 2025-01-03 04:49:47 +01:00
googlephotos: fix nil pointer crash on upload - fixes #8233
This commit is contained in:
parent
b8835fe7b4
commit
51d162e583
@ -1168,7 +1168,7 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
|
||||
errors := make([]error, 1)
|
||||
results := make([]*api.MediaItem, 1)
|
||||
err = o.fs.commitBatch(ctx, []uploadedItem{uploaded}, results, errors)
|
||||
if err != nil {
|
||||
if err == nil {
|
||||
err = errors[0]
|
||||
info = results[0]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user