fixed warning

This commit is contained in:
Walter Julius Hennecke 2013-05-24 22:19:39 +02:00
parent d5833a11ce
commit d15d902aaa
2 changed files with 2 additions and 2 deletions

View file

@ -1500,7 +1500,7 @@ char *G_searchGroupList(const char *name)
}
// did we find this group in the list?
if (i == group_count)
if (i == group_count || text_p == NULL)
{
Com_sprintf(races, sizeof(races), "unknown");
}

View file

@ -674,7 +674,7 @@ void Parse1DMatrix (char **buf_p, int x, float *m);
void Parse2DMatrix (char **buf_p, int y, int x, float *m);
void Parse3DMatrix (char **buf_p, int z, int y, int x, float *m);
void QDECL Com_sprintf (/*@null@*/ char *dest, size_t size, /*@null@*/ const char *fmt, /*@null@*/ ...) __attribute__ ((format (printf, 3, 4)));
void QDECL Com_sprintf (/*@null@*/ char *dest, size_t size, /*@null@*/ const char *fmt, ...) __attribute__ ((format (printf, 3, 4)));
// mode parm for FS_FOpenFile