Fixed obvious null pointer error as char* response was never allocated