mirror of https://github.com/eclipse/paho.mqtt.c
Ensure options aren't null #1193
This commit is contained in:
parent
045ce2d492
commit
5bb49f8772
|
|
@ -340,7 +340,7 @@ int MQTTAsync_createWithOptions(MQTTAsync* handle, const char* serverURI, const
|
|||
}
|
||||
}
|
||||
|
||||
if (options->maxBufferedMessages <= 0)
|
||||
if (options && options->maxBufferedMessages <= 0)
|
||||
{
|
||||
rc = MQTTASYNC_MAX_BUFFERED;
|
||||
goto exit;
|
||||
|
|
|
|||
Loading…
Reference in New Issue