This commit is contained in:
Devaev Maxim
2020-12-18 19:38:16 +03:00
parent ccf713dc1c
commit c352ed7f67

View File

@@ -50,7 +50,8 @@ const char *guess_mime_type(const char *path) {
char *dot;
char *ext;
dot = strrchr(path, '.');
// FIXME: false-positive cppcheck
dot = strrchr(path, '.'); // cppcheck-suppress ctunullpointer
if (dot == NULL || strchr(dot, '/') != NULL) {
goto misc;
}