libglusterfsclient: Fix segfault on non-NULL loc->name
libglusterfsclient: Fix segfault on non-NULL loc->name

The gf_log message actually assumes that loc->name will have a valid
non-NULL name in it, whereas if the loc_t being passed to it was
actually created on a function stack, i.e. a local function variable
and was then passed down the code path to do_path_resolve without ever
initing it or zeroing the structure, its possible that the name member
has a non-NULL but corrupted address. This leads to a segfault.
Whereas, we know loc->path will always have the full path.

Signed-off-by: Anand V. Avati <6a1810c170bd423868ce2e225ecea39d80cade0f@amp.gluster.com>

Kaushikbv/Gluster,Kaushikbv/Gluster,Kaushikbv/Gluster