In vm_new_vm(), use the proper calloc() argument order
authorFabian Keil <fk@fabiankeil.de>
Wed, 4 Dec 2013 23:02:01 +0000 (23:02 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 15 Feb 2014 18:29:51 +0000 (19:29 +0100)
commit3e8c9eeb5bf13fcb052566e9e6f499ba168253ab
treedff684e5e506db7cce69afc917a6d810f8621cd9
parent7ecb2b9736c77b6aa320989bc34b8f6c684e281c
In vm_new_vm(), use the proper calloc() argument order

.. and don't derive 1 from the unrelated sizeof(char).

Fixes the scan-anaylzer "API violation" warning:
Result of 'calloc' is converted to a pointer of type 'vm_t', which is incompatible with sizeof operand type 'char'

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/vm/vm.c