mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 11:19:17 +02:00
[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:
parent
f11988e500
commit
20e86525c9
1 changed files with 2 additions and 2 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue