diff options
author | Charlie Brej <cbrej@cs.man.ac.uk> | 2009-11-24 23:03:19 +0000 |
---|---|---|
committer | Charlie Brej <cbrej@cs.man.ac.uk> | 2009-11-24 23:03:19 +0000 |
commit | 20e86525c9ef045a82e0e17d2755daf8a8df91b3 (patch) | |
tree | 2ab96504fb82bf75f8b51debec105f64ab9b5436 | |
parent | f11988e500b4ca7c45d6541c200c87b103098f8f (diff) |
[script] Remove some debug code
Testing with it replying random strings to make sure the error cases were
caught. Code accidentally left in.
-rw-r--r-- | src/plugins/splash/script/script-lib-string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/splash/script/script-lib-string.c b/src/plugins/splash/script/script-lib-string.c index c2cd3d0c..833a3771 100644 --- a/src/plugins/splash/script/script-lib-string.c +++ b/src/plugins/splash/script/script-lib-string.c @@ -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]; |