diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/iso19111/io.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/iso19111/io.cpp b/src/iso19111/io.cpp index b442f993..0c5b2f1a 100644 --- a/src/iso19111/io.cpp +++ b/src/iso19111/io.cpp @@ -8236,6 +8236,8 @@ static double getAngularValue(const std::string ¶mValue, // --------------------------------------------------------------------------- static bool is_in_stringlist(const std::string &str, const char *stringlist) { + if (str.empty()) + return false; const char *haystack = stringlist; while (true) { const char *res = strstr(haystack, str.c_str()); |
