Changeset - r20943:e5dc277ec85a
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-11-16 10:04:10
rubidium@openttd.org
(svn r26008) -Fix (r25975): uninitialised warning
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/fileio.cpp
Show inline comments
 
@@ -1203,12 +1203,14 @@ void DeterminePaths(const char *exe)
 
					SP_PERSONAL_DIR, SP_BINARY_DIR, SP_WORKING_DIR, SP_SHARED_DIR, SP_INSTALLATION_DIR
 
				};
 

	
 
			config_dir = NULL;
 
			for (uint i = 0; i < lengthof(new_openttd_cfg_order); i++) {
 
				if (IsValidSearchPath(new_openttd_cfg_order[i])) {
 
					config_dir = strdup(_searchpaths[new_openttd_cfg_order[i]]);
 
					break;
 
				}
 
			}
 
			assert(config_dir != NULL);
 
#endif
 
			_config_file = str_fmt("%sopenttd.cfg", config_dir);
 
		}
0 comments (0 inline, 0 general)