From: Charlie Brej Date: Sun, 12 Jul 2009 14:09:00 +0000 (+0100) Subject: [script] Preset plymouth callback functions to script NULL objects X-Git-Tag: 0.7.0~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9879f3312f0025219319bca2e7ee2fbcd8704c22;p=thirdparty%2Fplymouth.git [script] Preset plymouth callback functions to script NULL objects They were set to the real NULL which most script-object functions cannot deal with. --- diff --git a/src/plugins/splash/script/script-lib-plymouth.c b/src/plugins/splash/script/script-lib-plymouth.c index 28c209f8..fd9fa154 100644 --- a/src/plugins/splash/script/script-lib-plymouth.c +++ b/src/plugins/splash/script/script-lib-plymouth.c @@ -60,14 +60,14 @@ script_lib_plymouth_data_t *script_lib_plymouth_setup (script_state_t *state) { script_lib_plymouth_data_t *data = malloc (sizeof (script_lib_plymouth_data_t)); - data->script_refresh_func = NULL; - data->script_boot_progress_func = NULL; - data->script_root_mounted_func = NULL; - data->script_keyboard_input_func = NULL; - data->script_update_status_func = NULL; - data->script_display_normal_func = NULL; - data->script_display_password_func = NULL; - data->script_display_question_func = NULL; + data->script_refresh_func = script_obj_new_null (); + data->script_boot_progress_func = script_obj_new_null (); + data->script_root_mounted_func = script_obj_new_null (); + data->script_keyboard_input_func = script_obj_new_null (); + data->script_update_status_func = script_obj_new_null (); + data->script_display_normal_func = script_obj_new_null (); + data->script_display_password_func = script_obj_new_null (); + data->script_display_question_func = script_obj_new_null (); script_add_native_function (state->global, "PlymouthSetRefreshFunction",