[pacman-dev] [PATCH 1/2] check for valid optarg before using strdup