text and style

This commit is contained in:
iceman1001 committed 2025-06-11 21:41:19 +02:00
1 parent 92c288ab85
commit 2ca43e0e2d
4 files changed
+19 -17

No files matched your search

+8 -4
View File
@@ -3043,18 +3043,22 @@ out:
int searchFile(char **foundpath, const char *pm3dir, const char *searchname, const char *suffix, bool silent) {
if (foundpath == NULL)
if (foundpath == NULL) {
return PM3_EINVARG;
}
if (searchname == NULL || strlen(searchname) == 0)
if (searchname == NULL || strlen(searchname) == 0) {
return PM3_EINVARG;
}
if (is_directory(searchname))
if (is_directory(searchname)) {
return PM3_EINVARG;
}
char *filename = filenamemcopy(searchname, suffix);
if (filename == NULL)
if (filename == NULL) {
return PM3_EMALLOC;
}
if (strlen(filename) == 0) {
free(filename);