Merge pull request #64 from kosma/clang_null

minmea.c - Fix dereference of null pointer error caught by clang's sc…
This commit is contained in:
Kosma Moczek 2022-06-02 22:42:36 +02:00 committed by GitHub
commit ce0fb1d6da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,6 +93,10 @@ bool minmea_scan(const char *sentence, const char *format, ...)
{
bool result = false;
bool optional = false;
if (sentence == NULL)
return false;
va_list ap;
va_start(ap, format);