mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-11 10:03:43 +00:00
lint fix
This commit is contained in:
@@ -50,7 +50,8 @@ const char *guess_mime_type(const char *path) {
|
|||||||
char *dot;
|
char *dot;
|
||||||
char *ext;
|
char *ext;
|
||||||
|
|
||||||
dot = strrchr(path, '.');
|
// FIXME: false-positive cppcheck
|
||||||
|
dot = strrchr(path, '.'); // cppcheck-suppress ctunullpointer
|
||||||
if (dot == NULL || strchr(dot, '/') != NULL) {
|
if (dot == NULL || strchr(dot, '/') != NULL) {
|
||||||
goto misc;
|
goto misc;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user