summaryrefslogtreecommitdiff
path: root/src/fileio.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-16 10:04:10 +0000
committerrubidium <rubidium@openttd.org>2013-11-16 10:04:10 +0000
commitb934e528d9994d730b1df6edcb4341e946e47791 (patch)
tree802ad401389cfbcc169211f10242badbfce25522 /src/fileio.cpp
parenta25ecfd982f0a29a749f93ede2a2b5c9cc4408e9 (diff)
downloadopenttd-b934e528d9994d730b1df6edcb4341e946e47791.tar.xz
(svn r26008) -Fix (r25975): uninitialised warning
Diffstat (limited to 'src/fileio.cpp')
-rw-r--r--src/fileio.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index 6be2195f2..634033747 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -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);
}