SCP: Try to silence a Coverity warning with a different expression.
This commit is contained in:
parent
880c8a89b7
commit
314a1da988
1 changed files with 1 additions and 1 deletions
2
scp.c
2
scp.c
|
@ -13923,7 +13923,7 @@ if (this_Stack == NULL)
|
|||
if (this_Stack->pointer == this_Stack->size) { /* If necessary, grow stack */
|
||||
this_Stack->size += STACK_GROW_AMOUNT;
|
||||
this_Stack->elements = (Stack_Element *)realloc (this_Stack->elements, this_Stack->size * sizeof(*this_Stack->elements));
|
||||
memset (&this_Stack->elements[this_Stack->size - STACK_GROW_AMOUNT], 0, STACK_GROW_AMOUNT * sizeof(*this_Stack->elements));
|
||||
memset (this_Stack->elements + this_Stack->size - STACK_GROW_AMOUNT, 0, STACK_GROW_AMOUNT * sizeof(*this_Stack->elements));
|
||||
}
|
||||
|
||||
this_Stack->elements[this_Stack->pointer].op = op;
|
||||
|
|
Loading…
Add table
Reference in a new issue