/* If the user provided a plugin path, we add it to the list */
paths = getenv( "VLC_PLUGIN_PATH" );
if( paths == NULL )
paths = strdup( paths ); /* don't harm the environment ! :) */
if( unlikely(paths == NULL) )
getenv and _putenvuse the copy of the environment pointed to by the global variable _environto access the environment. getenv operates only on the data structures accessible to the run-time library and not on the environment "segment" created for the process by the operating system. Therefore, programs that use the envp argument to or may retrieve invalid information.