Fixed a potential NPE

It is preferable to have a nop output rather than NPE.

Fixes #107
Thx!
This commit is contained in:
David "Blackmagic" Elahee
2014-03-18 10:15:43 +01:00
parent b895216f73
commit c9932223ae

View File

@@ -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)