This commit is contained in:
Walter Julius Hennecke 2013-06-07 22:15:48 +02:00
parent 2621b4a0fd
commit d44bd2d583

View file

@ -115,8 +115,7 @@ if path doesn't have an extension, then append
the specified one (which should include the .)
==================
*/
void COM_DefaultExtension( char *path, size_t maxSize, const char *extension )
{
void COM_DefaultExtension( char *path, size_t maxSize, const char *extension ) {
const char *dot = strrchr(path, '.'), *slash;
if (dot && (!(slash = strrchr(path, '/')) || slash < dot))
return;