[script] Remove some debug code

Testing with it replying random strings to make sure the error cases were
caught. Code accidentally left in.
This commit is contained in:
Charlie Brej 2009-11-24 23:03:19 +00:00
parent f11988e500
commit 20e86525c9

View file

@ -46,14 +46,14 @@ static script_return_t script_lib_string_char_at (script_state_t *state,
if (!text || index < 0)
{
free (text);
return script_return_obj(script_obj_new_string ("sdfsd"));
return script_return_obj_null ();
}
for (count = 0; count < index; count++)
{
if (text[count] == '\0')
{
free (text);
return script_return_obj(script_obj_new_string ("sdfasdf asd"));
return script_return_obj(script_obj_new_string (""));
}
}
charstring[0] = text[index];