mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-22 05:47:35 +00:00
libpod: do not dereference nil pointer
on errors the event pointer is nil. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
54afcdf6b3
commit
9922bddb1f
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ func (e EventLogFile) Read(ctx context.Context, options ReadOptions) error {
|
|||
|
||||
event, err := newEventFromJSONString(line.Text)
|
||||
if err != nil {
|
||||
err := fmt.Errorf("event type %s is not valid in %s", event.Type.String(), e.options.LogFilePath)
|
||||
err := fmt.Errorf("event type is not valid in %s", e.options.LogFilePath)
|
||||
options.EventChannel <- ReadResult{Error: err}
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue