mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Fix a warning that got through
I forgot to compile test in optimized...
This commit is contained in:
parent
bd6dcafdc8
commit
a65d6bce09
1 changed files with 4 additions and 2 deletions
|
@ -155,7 +155,7 @@ parse_params (type_t *type, param_t *parms)
|
|||
{
|
||||
param_t *p;
|
||||
type_t *new;
|
||||
int count;
|
||||
int count = 0;
|
||||
|
||||
new = new_type ();
|
||||
new->type = ev_func;
|
||||
|
@ -168,7 +168,9 @@ parse_params (type_t *type, param_t *parms)
|
|||
count++;
|
||||
}
|
||||
}
|
||||
new->t.func.param_types = malloc (count * sizeof (type_t));
|
||||
if (count) {
|
||||
new->t.func.param_types = malloc (count * sizeof (type_t));
|
||||
}
|
||||
for (p = parms; p; p = p->next) {
|
||||
if (!p->selector && !p->type && !p->name) {
|
||||
if (p->next)
|
||||
|
|
Loading…
Reference in a new issue