type of "i" changed from int to unsigned int
Initialize `fds` to NULL
Initialized `pathname`