|
@@ -17085,8 +17085,8 @@ mg_connect_client2(const char *host,
|
|
|
return mg_connect_websocket_client(host,
|
|
|
port,
|
|
|
is_ssl,
|
|
|
- error->text,
|
|
|
- error->text_buffer_size,
|
|
|
+ ((error != NULL) ? error->text : NULL),
|
|
|
+ ((error != NULL) ? error->text_buffer_size : 0),
|
|
|
(path ? path : ""),
|
|
|
NULL /* TODO: origin */,
|
|
|
deprecated_websocket_data_wrapper,
|