q3map2: fix crash if command-line argument is missing
authorZack Middleton <zack@cloemail.com>
Wed, 24 Jul 2019 06:11:58 +0000 (01:11 -0500)
committerZack Middleton <zack@cloemail.com>
Fri, 26 Jul 2019 15:18:25 +0000 (10:18 -0500)
commit7f034b8ced2966f3601f2f96f3c58ae64a062ece
tree885d3288e75770c6e2e3d56dfeb4b7ece05522fe
parent83bf40560747af61bb506d3631e0acbbf00fb34a
q3map2: fix crash if command-line argument is missing

Running `q3map2 -fs_forbiddenpath -v mapname.map` would crash because
-v gets replaced with NULL in main().

Running `q3map2 -threads` would crash because missing next argument
for number of threads.
tools/quake3/q3map2/main.c
tools/quake3/q3map2/path_init.c