Skip to content
Snippets Groups Projects
Commit 6d37aa6b authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix some more Coverity "issues".

parent b944e068
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4484 passed
......@@ -527,8 +527,6 @@ fullscreen_geometry(int *x_org, int *y_org, int *width, int *height)
x11.XRRFreeCrtcInfo(xrrci);
return true;
}
if (xrrci != NULL)
x11.XRRFreeCrtcInfo(xrrci);
}
#endif
#ifdef WITH_XINERAMA
......
......@@ -2369,8 +2369,10 @@ get_cache_fn_base(struct bbslist *bbs, char *fn, size_t fnsz)
backslash(fn);
strcat(fn, bbs->name);
backslash(fn);
if (!isdir(fn))
mkpath(fn);
if (!isdir(fn)) {
if (mkpath(fn))
return 0;
}
if (!isdir(fn))
return 0;
return 1;
......@@ -3314,7 +3316,10 @@ apc_handler(char *strbuf, size_t slen, void *apcd)
p = strrchr(fn, '/');
if (p) {
*p = 0;
mkpath(fn);
if (mkpath(fn)) {
free(buf);
return;
}
*p = '/';
}
f = fopen(fn, "wb");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment