fix for uninitialized memory use with numeric input:

bevel/inset/marker-move would use uninitialized memory when used as modal operators and pressing backspace after entering values.
This commit is contained in:
2012-11-26 03:47:20 +00:00
parent 3d64381e4d
commit e77e1f183a
5 changed files with 22 additions and 14 deletions

View File

@@ -130,6 +130,9 @@ short hasNumInput(NumInput *n)
return 0;
}
/**
* \warning \a vec must be set beforehand otherwise we risk uninitialized vars.
*/
void applyNumInput(NumInput *n, float *vec)
{
short i, j;