Ensure options aren't null #1193

This commit is contained in:
Ian Craggs 2022-03-07 17:42:25 +00:00
parent 045ce2d492
commit 5bb49f8772
1 changed files with 1 additions and 1 deletions

View File

@ -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;