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) ...@@ -527,8 +527,6 @@ fullscreen_geometry(int *x_org, int *y_org, int *width, int *height)
x11.XRRFreeCrtcInfo(xrrci); x11.XRRFreeCrtcInfo(xrrci);
return true; return true;
} }
if (xrrci != NULL)
x11.XRRFreeCrtcInfo(xrrci);
} }
#endif #endif
#ifdef WITH_XINERAMA #ifdef WITH_XINERAMA
......
...@@ -2369,8 +2369,10 @@ get_cache_fn_base(struct bbslist *bbs, char *fn, size_t fnsz) ...@@ -2369,8 +2369,10 @@ get_cache_fn_base(struct bbslist *bbs, char *fn, size_t fnsz)
backslash(fn); backslash(fn);
strcat(fn, bbs->name); strcat(fn, bbs->name);
backslash(fn); backslash(fn);
if (!isdir(fn)) if (!isdir(fn)) {
mkpath(fn); if (mkpath(fn))
return 0;
}
if (!isdir(fn)) if (!isdir(fn))
return 0; return 0;
return 1; return 1;
...@@ -3314,7 +3316,10 @@ apc_handler(char *strbuf, size_t slen, void *apcd) ...@@ -3314,7 +3316,10 @@ apc_handler(char *strbuf, size_t slen, void *apcd)
p = strrchr(fn, '/'); p = strrchr(fn, '/');
if (p) { if (p) {
*p = 0; *p = 0;
mkpath(fn); if (mkpath(fn)) {
free(buf);
return;
}
*p = '/'; *p = '/';
} }
f = fopen(fn, "wb"); f = fopen(fn, "wb");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment