Check if path could be allocated, initialize it with an empty string.