There is a line of code that I do not quite understand in Stub::SetSecure.
Here is the routine:
va_list args;
char * pszArg = NULL;
va_start( args, pszArguments);
if( (pszArg = pszArguments) != NULL)
{
do
{
if( pszArg == (char *) 1)
m_sArguments[iArgIndex] = "true";
else
m_sArguments[iArgIndex] = pszArg;
iArgIndex++;
}
while( (pszArg = va_arg( args, char *)) != NULL && iArgIndex < 8);
if( iArgIndex == 6)
m_sArguments[iArgIndex] = "false";
}
va_end( args);
The line I do not understand is
if( pszArg == (char *) 1)
Can someone please explain how this works?
Nadir K. Amra