q3map2: fix dangling pointer dereference
authorBen Noordhuis <info@bnoordhuis.nl>
Sun, 18 Mar 2012 00:53:03 +0000 (01:53 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Sun, 18 Mar 2012 01:17:09 +0000 (02:17 +0100)
commit808e1c9f6f81f93bc0331f3b8fda3b57778fb6bb
tree230f3597ac09ecd39d2aa004959e32bcfa9a7db1
parentd7e9dab03d4791de2c2e31e401e51941fd68f294
q3map2: fix dangling pointer dereference

`last` was used but not initialized.

Also fixes a segmentation fault if PATH is not in the environment.
tools/quake3/q3map2/path_init.c