remove gcc warning on strdup()