From: Toni Wilen Date: Sun, 2 Feb 2020 12:57:39 +0000 (+0200) Subject: Allow null config status output buffer. X-Git-Tag: 4400~141 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=3ae6b118d9e9e19acd09d48db836922d2e239008;p=francis%2Fwinuae.git Allow null config status output buffer. --- 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;