Skip to content

Commit 22ac049

Browse files
author
Preetha Appan
committed
Fix nil dereference in copy method
1 parent 8a38680 commit 22ac049

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/drivers/driver.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ func (r *ExitResult) Successful() bool {
250250
}
251251

252252
func (r *ExitResult) Copy() *ExitResult {
253+
if r == nil {
254+
return nil
255+
}
253256
res := new(ExitResult)
254257
*res = *r
255258
return res

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy