WUtil: fix posible crash in 'wgethomedir' (Coverity #50070)
commit978cb1f154ed53b141109c11960293c1cafb9a43
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 17 May 2014 22:56:37 +0000 (18 00:56 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 18 May 2014 22:00:16 +0000 (18 23:00 +0100)
tree5d1a890c2a34a7a98b79fb50ca01c13654c377c6
parent11497973ad0972d222bb9b5544c511b0033e4310
WUtil: fix posible crash in 'wgethomedir' (Coverity #50070)

As pointed by Coverity, if the user does not a an entry in the password
file then the function would assume its home path to be "/" but still
continue and later try to check for user->pw_dir which would dereference
the NULL pointer.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
WINGs/findfile.c