ref: 710f779fdacf57a6311c62c6e29a5e8e18576c3f
parent: c909a88a89b43d5555f3090c0a54de31b067fe7c
author: Konstantinn Bonnet <[email protected]>
date: Fri Mar 13 11:15:37 EDT 2015
fix passing nil pointer to sprintf why is that not an error elsewhere.
--- a/client/menu.c
+++ b/client/menu.c
@@ -3457,7 +3457,8 @@
*/
do
{
- path = FS_NextPath( path );
+ if ( ( path = FS_NextPath( path ) ) == NULL)
+ break;
Com_sprintf( findname, sizeof(findname), "%s/players/*.*", path );
if ( ( dirnames = FS_ListFiles( findname, &ndirs, SFF_SUBDIR, 0 ) ) != 0 )