mascarenhas / alien

A C FFI for Lua
http://mascarenhas.github.com/alien/
143 stars 45 forks source link

args not initalized when call a function without parameter #36

Open bugsbunny1101 opened 11 years ago

bugsbunny1101 commented 11 years ago

Run-Time Check Failure #3 - The variable 'args' is being used without being initialized.

If the target function have no parameters, then the args variable is not initialized.

Suggest fix is core.c line 737:

void **args=0;