mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Fix a terrible mistake in TIKI_FindTiki with uninitialized variable
This was using an uninitialized buffer to find the cached TIKI, in most configurations it always returned false, but when compiled with GCC it would return true
This commit is contained in:
parent
7e15c2ac1b
commit
bd021b109c
1 changed files with 3 additions and 0 deletions
|
@ -83,6 +83,9 @@ dtiki_t *TIKI_FindTiki(const char *path)
|
|||
if (tikicache) {
|
||||
dtiki_t **t;
|
||||
|
||||
Q_strncpyz(filename, path, sizeof(filename));
|
||||
FS_CanonicalFilename(filename);
|
||||
|
||||
t = tikicache->find(filename);
|
||||
if (t) {
|
||||
return *t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue