FRONTPANEL: Fix Coverity identified problems
This commit is contained in:
parent
5135f137ea
commit
fcf3104f6a
1 changed files with 2 additions and 1 deletions
|
@ -235,7 +235,7 @@ return p;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void __panel_debug (PANEL *p, int dbits, const char *fmt, const char *buf, int bufsize, ...) GCC_FMT_ATTR(3, 6);
|
static void __panel_debug (PANEL *p, int dbits, const char *fmt, const char *buf, int bufsize, ...) GCC_FMT_ATTR(3, 6);
|
||||||
#define _panel_debug(p, dbits, fmt, buf, bufsize, ...) do { if (p && p->Debug && (dbits & p->debug)) __panel_debug (p, dbits, fmt, buf, bufsize, ##__VA_ARGS__);} while (0)
|
#define _panel_debug(p, dbits, fmt, buf, bufsize, ...) do { if (p && p->Debug && ((dbits) & p->debug)) __panel_debug (p, dbits, fmt, buf, bufsize, ##__VA_ARGS__);} while (0)
|
||||||
|
|
||||||
static void __panel_debug (PANEL *p, int dbits, const char *fmt, const char *buf, int bufsize, ...)
|
static void __panel_debug (PANEL *p, int dbits, const char *fmt, const char *buf, int bufsize, ...)
|
||||||
{
|
{
|
||||||
|
@ -714,6 +714,7 @@ if (debug_file) {
|
||||||
free (buf);
|
free (buf);
|
||||||
buf = NULL;
|
buf = NULL;
|
||||||
fclose (fIn);
|
fclose (fIn);
|
||||||
|
fIn = NULL;
|
||||||
}
|
}
|
||||||
if (!simulator_panel) {
|
if (!simulator_panel) {
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
|
|
Loading…
Add table
Reference in a new issue