fix some cppchecker warnings, missing null checks, consts

This commit is contained in:
iceman1001 committed 2025-09-02 22:27:45 +02:00
1 parent 0929a14b5d
commit d3627920cd
8 files changed
+51 -14

No files matched your search

+1 -1
View File
@@ -3171,7 +3171,7 @@ int searchFile(char **foundpath, const char *pm3dir, const char *searchname, con
* Returns PM3_SUCCES or, PM3_EFILE;
*
* @param filepath Path to the file.
* @param line Line to insert (should not contain a trailing newline).
* @param keystr Line to insert (should not contain a trailing newline).
*/
int insert_line_if_not_exists(const char *preferredName, const char *keystr) {