X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/550343399aa1355469ffed72c8cf84c732dcf98b..5b061713ead8efcd266f9eebe50f77358e07b651:/src/unix/fontenum.cpp diff --git a/src/unix/fontenum.cpp b/src/unix/fontenum.cpp index 0496afeeef..a72dfdf81e 100644 --- a/src/unix/fontenum.cpp +++ b/src/unix/fontenum.cpp @@ -20,7 +20,10 @@ // for compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -#include "wx/dynarray.h" +#ifndef WX_PRECOMP + #include "wx/dynarray.h" +#endif + #include "wx/string.h" #include "wx/regex.h" #include "wx/utils.h" @@ -194,6 +197,7 @@ static bool ProcessFamiliesFromFontList(wxFontEnumerator *This, continue; } + // coverity[returned_null] char *dash = strchr(font + 1, '-'); char *family = dash + 1; dash = strchr(family, '-');