WUtil: fix undefined behaviour with $VARS in wexpandpath (Coverity #50244)
commitc5f103984ae7e54de0616cf48d37af4295c95bdc
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 17 May 2014 22:56:44 +0000 (18 00:56 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 18 May 2014 22:00:16 +0000 (18 23:00 +0100)
treee9af0da50bef0f350941f475ba960c3edcc22720
parenta72c166b6e17aa0f1ab0c84eb3f558a55f00211a
WUtil: fix undefined behaviour with $VARS in wexpandpath (Coverity #50244)

As reported by coverity, calling 'wexpandpath' with a path that contains
either '$()', '$(\0' or '$\0' would cause an undefined behaviour because
the 'buffer2' would be uninitialised.

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