From 3ae6b118d9e9e19acd09d48db836922d2e239008 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 2 Feb 2020 14:57:39 +0200 Subject: [PATCH] Allow null config status output buffer. --- cfgfile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cfgfile.cpp b/cfgfile.cpp index 2f31e9c0..e3097701 100644 --- a/cfgfile.cpp +++ b/cfgfile.cpp @@ -3395,7 +3395,6 @@ static int cfgfile_parse_host (struct uae_prefs *p, TCHAR *option, TCHAR *value) return 1; } - #ifdef GFXFILTER for (int j = 0; j < 2; j++) { struct gfx_filterdata *gf = &p->gf[j]; @@ -7372,7 +7371,8 @@ uae_u32 cfgfile_modify (uae_u32 index, const TCHAR *parms, uae_u32 size, TCHAR * uae_u32 err; static TCHAR *configsearch; - *out = 0; + if (out) + *out = 0; err = 0; argv = 0; p = 0; -- 2.47.3