Fixed a potential NPE
It is preferable to have a nop output rather than NPE. Fixes #107 Thx!
This commit is contained in:
@@ -139,7 +139,7 @@ value lime_gl_get_parameter(value pname_val)
|
|||||||
{
|
{
|
||||||
int floats = 0;
|
int floats = 0;
|
||||||
int ints = 0;
|
int ints = 0;
|
||||||
int strings = 1;
|
int strings = 0;
|
||||||
int pname = val_int(pname_val);
|
int pname = val_int(pname_val);
|
||||||
|
|
||||||
switch(pname)
|
switch(pname)
|
||||||
|
|||||||
Reference in New Issue
Block a user