Fix segfault when no_cookies=true

This commit is contained in:
Paul G
2018-09-23 08:25:15 -04:00
parent aa3389b1d0
commit ab0eddb0ba

View File

@@ -114,7 +114,10 @@ func NewClient(conf *config) (c *Client, err error) {
if err != nil {
return nil, err
}
} else {
c.cookieJar = nil;
}
c.httpClientMux = new(sync.RWMutex)
err = c.newHTTPClient()
if err != nil {