mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
Simplify some condition in the tester
This commit is contained in:
parent
7cd6a477f8
commit
f132166f46
1 changed files with 1 additions and 1 deletions
2
test.c
2
test.c
|
@ -619,7 +619,7 @@ bool task_propogate(const char *curdir) {
|
||||||
* We made it here, which concludes the file/directory is not
|
* We made it here, which concludes the file/directory is not
|
||||||
* actually a directory, so it must be a file :)
|
* actually a directory, so it must be a file :)
|
||||||
*/
|
*/
|
||||||
if (strstr(files->d_name, ".tmpl") == &files->d_name[strlen(files->d_name) - (sizeof(".tmpl") - 1)]) {
|
if (strcmp(files->d_name + strlen(files->d_name) - 5, ".tmpl") == 0) {
|
||||||
task_template_t *template = task_template_compile(files->d_name, curdir);
|
task_template_t *template = task_template_compile(files->d_name, curdir);
|
||||||
char buf[4096]; /* one page should be enough */
|
char buf[4096]; /* one page should be enough */
|
||||||
task_t task;
|
task_t task;
|
||||||
|
|
Loading…
Reference in a new issue