From 30229f6724522f1bc2f35bbaa837294888b4def1 Mon Sep 17 00:00:00 2001 From: Stefanos Kornilios Mitsis Poiitidis Date: Wed, 29 Jul 2015 03:23:08 +0200 Subject: [PATCH] cl: Fix const warning --- core/cfg/cl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/cfg/cl.cpp b/core/cfg/cl.cpp index 205fb1ea1..056b4e387 100644 --- a/core/cfg/cl.cpp +++ b/core/cfg/cl.cpp @@ -78,8 +78,9 @@ int setconfig(wchar** arg,int cl) return rv; } - if (value==0) - value=""; + const wchar* constval = value; + if (constval==0) + constval=""; printf("Virtual cfg %s:%s=%s\n",sect,key,value); cfgSetVitual(sect,key,value);