stat: Avoid freeing null pointer
authorErwan Velu <erwanaliasr1@gmail.com>
Wed, 8 Sep 2021 20:35:59 +0000 (22:35 +0200)
committerErwan Velu <erwanaliasr1@gmail.com>
Wed, 8 Sep 2021 20:35:59 +0000 (22:35 +0200)
commit824d8186d4fff69e95163cb3272246e03d4213fa
tree132ed447c2389367474a6cec1249a12131e97b51
parentff317807d24461b65041ba191de5f981107e1811
stat: Avoid freeing null pointer

If ovals is NULL, the jump to out will free(ovals) and will trigger an error.
As the out label was only used for this condition, let's remove it and return immediately.
As out was also used as a variable name, this makes the function easier
to read and more robust.

Signed-off-by: Erwan Velu <erwanaliasr1@gmail.com>
stat.c