__getmainargs return int, not void, and on error, it return -1 and let argv untouched...