Merge pull request #28417 from bluca/coverity

Some coverity fixes
This commit is contained in:
Luca Boccassi
2023-07-28 09:56:08 +01:00
committed by GitHub
4 changed files with 15 additions and 2 deletions
+2
View File
@@ -63,6 +63,8 @@ int glob_first(const char *path, char **ret_first) {
return k;
if (ret_first) {
assert(g.gl_pathv && g.gl_pathv[0]);
char *first = strdup(g.gl_pathv[0]);
if (!first)
return log_oom_debug();