Check return value of getenv().
authorlroland <lroland@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 7 Jan 2005 03:19:39 +0000 (03:19 +0000)
committerlroland <lroland@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 7 Jan 2005 03:19:39 +0000 (03:19 +0000)
commit5f65991cce176f3575234837256f0b6123cba26f
tree917e01d254dac6eeee78da7b97181a3999b2bf45
parent028173bf650144e8a0dd8c8d0386a49fda13d3e2
Check return value of getenv().
It can return NULL, which would lead here to strcpy(hostspath, NULL);
*Very* bad.

replace g_malloc(), strcpy() and strcat() with one single g_strconcat().

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12970 f5534014-38df-0310-8fa8-9805f1628bb7
epan/addr_resolv.c