mirror of
https://github.com/open-simh/simh.git
synced 2026-05-05 15:43:58 +00:00
FRONTPANEL: Fix Coverity identified problems
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user