fixed variable shadowing a parameter

This commit is contained in:
csoler 2017-07-12 18:48:06 +02:00
parent 1cdb971cf1
commit 66268c8267

View File

@ -277,7 +277,7 @@ bool doPortRestrictions = false;
#endif #endif
#endif #endif
int RsInit::InitRetroShare(int argc, char **argv, bool /* strictCheck */) int RsInit::InitRetroShare(int _argc, char **_argv, bool /* strictCheck */)
{ {
/******************************** WINDOWS/UNIX SPECIFIC PART ******************/ /******************************** WINDOWS/UNIX SPECIFIC PART ******************/
#ifdef WINDOWS_SYS #ifdef WINDOWS_SYS
@ -310,6 +310,9 @@ int RsInit::InitRetroShare(int argc, char **argv, bool /* strictCheck */)
} }
} }
argc = i; argc = i;
#else
char **argv = _argv ;
int argc = _argc ;
#endif #endif
#ifdef DEBUG_RSINIT #ifdef DEBUG_RSINIT