From: Kevin Day Date: Sat, 24 Dec 2022 22:30:43 +0000 (-0600) Subject: Security: Check if setting is NULL. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=8455d796c5ee85517ffa875034314da26d723e04;p=fll Security: Check if setting is NULL. --- diff --git a/level_3/byte_dump/c/print.c b/level_3/byte_dump/c/print.c index d70cc81..a3594d9 100644 --- a/level_3/byte_dump/c/print.c +++ b/level_3/byte_dump/c/print.c @@ -112,7 +112,7 @@ extern "C" { #ifndef _di_byte_dump_print_line_last_locked_ f_status_t byte_dump_print_line_last_locked(byte_dump_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (setting->flag & byte_dump_main_flag_verify_e) return; if (!F_status_is_error(setting->status)) { @@ -129,7 +129,7 @@ extern "C" { #ifndef _di_byte_dump_print_line_last_unlocked_ f_status_t byte_dump_print_line_last_unlocked(byte_dump_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (setting->flag & byte_dump_main_flag_verify_e) return; if (!F_status_is_error(setting->status)) { diff --git a/level_3/control/c/print.c b/level_3/control/c/print.c index 6f16021..174ed8d 100644 --- a/level_3/control/c/print.c +++ b/level_3/control/c/print.c @@ -51,7 +51,7 @@ extern "C" { #ifndef _di_control_print_line_first_locked_ f_status_t control_print_line_first_locked(control_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (setting->flag & control_main_flag_verify_e) return; if (!F_status_is_error(setting->status)) { @@ -68,7 +68,7 @@ extern "C" { #ifndef _di_control_print_line_first_unlocked_ f_status_t control_print_line_first_unlocked(control_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (setting->flag & control_main_flag_verify_e) return; if (!F_status_is_error(setting->status)) { @@ -85,7 +85,7 @@ extern "C" { #ifndef _di_control_print_line_last_locked_ f_status_t control_print_line_last_locked(control_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (setting->flag & control_main_flag_verify_e) return; if (!F_status_is_error(setting->status)) { @@ -102,7 +102,7 @@ extern "C" { #ifndef _di_control_print_line_last_unlocked_ f_status_t control_print_line_last_unlocked(control_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (setting->flag & control_main_flag_verify_e) return; if (!F_status_is_error(setting->status)) { diff --git a/level_3/controller/c/print.c b/level_3/controller/c/print.c index d25b6f2..2598714 100644 --- a/level_3/controller/c/print.c +++ b/level_3/controller/c/print.c @@ -54,7 +54,7 @@ extern "C" { #ifndef _di_controller_print_line_first_locked_ f_status_t controller_print_line_first_locked(controller_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (setting->flag & controller_main_flag_verify_e) return; if (!F_status_is_error(setting->status)) { @@ -71,7 +71,7 @@ extern "C" { #ifndef _di_controller_print_line_first_unlocked_ f_status_t controller_print_line_first_unlocked(controller_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (setting->flag & controller_main_flag_verify_e) return; if (!F_status_is_error(setting->status)) { @@ -88,7 +88,7 @@ extern "C" { #ifndef _di_controller_print_line_last_locked_ f_status_t controller_print_line_last_locked(controller_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (setting->flag & controller_main_flag_verify_e) return; if (!F_status_is_error(setting->status)) { @@ -105,7 +105,7 @@ extern "C" { #ifndef _di_controller_print_line_last_unlocked_ f_status_t controller_print_line_last_unlocked(controller_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (setting->flag & controller_main_flag_verify_e) return; if (!F_status_is_error(setting->status)) { diff --git a/level_3/fake/c/print.c b/level_3/fake/c/print.c index ab71f74..9880f6a 100644 --- a/level_3/fake/c/print.c +++ b/level_3/fake/c/print.c @@ -82,7 +82,7 @@ extern "C" { #ifndef _di_fake_print_line_first_locked_ f_status_t fake_print_line_first_locked(fake_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -97,7 +97,7 @@ extern "C" { #ifndef _di_fake_print_line_first_unlocked_ f_status_t fake_print_line_first_unlocked(fake_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -112,7 +112,7 @@ extern "C" { #ifndef _di_fake_print_line_last_locked_ f_status_t fake_print_line_last_locked(fake_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -127,7 +127,7 @@ extern "C" { #ifndef _di_fake_print_line_last_unlocked_ f_status_t fake_print_line_last_unlocked(fake_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; diff --git a/level_3/firewall/c/print.c b/level_3/firewall/c/print.c index ea271f5..aa7df5e 100644 --- a/level_3/firewall/c/print.c +++ b/level_3/firewall/c/print.c @@ -40,7 +40,7 @@ extern "C" { #ifndef _di_firewall_print_line_first_locked_ f_status_t firewall_print_line_first_locked(firewall_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -55,7 +55,7 @@ extern "C" { #ifndef _di_firewall_print_line_first_unlocked_ f_status_t firewall_print_line_first_unlocked(firewall_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -70,7 +70,7 @@ extern "C" { #ifndef _di_firewall_print_line_last_locked_ f_status_t firewall_print_line_last_locked(firewall_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -85,7 +85,7 @@ extern "C" { #ifndef _di_firewall_print_line_last_unlocked_ f_status_t firewall_print_line_last_unlocked(firewall_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; diff --git a/level_3/fss_basic_list_read/c/print.c b/level_3/fss_basic_list_read/c/print.c index 0ef43f7..d911e68 100644 --- a/level_3/fss_basic_list_read/c/print.c +++ b/level_3/fss_basic_list_read/c/print.c @@ -118,7 +118,7 @@ extern "C" { #ifndef _di_fss_basic_list_read_print_line_first_locked_ f_status_t fss_basic_list_read_print_line_first_locked(fss_basic_list_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -133,7 +133,7 @@ extern "C" { #ifndef _di_fss_basic_list_read_print_line_first_unlocked_ f_status_t fss_basic_list_read_print_line_first_unlocked(fss_basic_list_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -148,7 +148,7 @@ extern "C" { #ifndef _di_fss_basic_list_read_print_line_last_locked_ f_status_t fss_basic_list_read_print_line_last_locked(fss_basic_list_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -163,7 +163,7 @@ extern "C" { #ifndef _di_fss_basic_list_read_print_line_last_unlocked_ f_status_t fss_basic_list_read_print_line_last_unlocked(fss_basic_list_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; diff --git a/level_3/fss_basic_read/c/print.c b/level_3/fss_basic_read/c/print.c index d33d4ea..c2ea94c 100644 --- a/level_3/fss_basic_read/c/print.c +++ b/level_3/fss_basic_read/c/print.c @@ -118,7 +118,7 @@ extern "C" { #ifndef _di_fss_basic_read_print_line_first_locked_ f_status_t fss_basic_read_print_line_first_locked(fss_basic_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -133,7 +133,7 @@ extern "C" { #ifndef _di_fss_basic_read_print_line_first_unlocked_ f_status_t fss_basic_read_print_line_first_unlocked(fss_basic_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -148,7 +148,7 @@ extern "C" { #ifndef _di_fss_basic_read_print_line_last_locked_ f_status_t fss_basic_read_print_line_last_locked(fss_basic_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -163,7 +163,7 @@ extern "C" { #ifndef _di_fss_basic_read_print_line_last_unlocked_ f_status_t fss_basic_read_print_line_last_unlocked(fss_basic_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; diff --git a/level_3/fss_embedded_list_read/c/print.c b/level_3/fss_embedded_list_read/c/print.c index f787c98..c207bad 100644 --- a/level_3/fss_embedded_list_read/c/print.c +++ b/level_3/fss_embedded_list_read/c/print.c @@ -117,7 +117,7 @@ extern "C" { #ifndef _di_fss_embedded_list_read_print_line_first_locked_ f_status_t fss_embedded_list_read_print_line_first_locked(fss_embedded_list_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -132,7 +132,7 @@ extern "C" { #ifndef _di_fss_embedded_list_read_print_line_first_unlocked_ f_status_t fss_embedded_list_read_print_line_first_unlocked(fss_embedded_list_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -147,7 +147,7 @@ extern "C" { #ifndef _di_fss_embedded_list_read_print_line_last_locked_ f_status_t fss_embedded_list_read_print_line_last_locked(fss_embedded_list_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -162,7 +162,7 @@ extern "C" { #ifndef _di_fss_embedded_list_read_print_line_last_unlocked_ f_status_t fss_embedded_list_read_print_line_last_unlocked(fss_embedded_list_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; diff --git a/level_3/fss_extended_list_read/c/print.c b/level_3/fss_extended_list_read/c/print.c index 57396d8..f60a402 100644 --- a/level_3/fss_extended_list_read/c/print.c +++ b/level_3/fss_extended_list_read/c/print.c @@ -118,7 +118,7 @@ extern "C" { #ifndef _di_fss_extended_list_read_print_line_first_locked_ f_status_t fss_extended_list_read_print_line_first_locked(fss_extended_list_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -133,7 +133,7 @@ extern "C" { #ifndef _di_fss_extended_list_read_print_line_first_unlocked_ f_status_t fss_extended_list_read_print_line_first_unlocked(fss_extended_list_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -148,7 +148,7 @@ extern "C" { #ifndef _di_fss_extended_list_read_print_line_last_locked_ f_status_t fss_extended_list_read_print_line_last_locked(fss_extended_list_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -164,7 +164,7 @@ extern "C" { #ifndef _di_fss_extended_list_read_print_line_last_unlocked_ f_status_t fss_extended_list_read_print_line_last_unlocked(fss_extended_list_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; diff --git a/level_3/fss_extended_read/c/print.c b/level_3/fss_extended_read/c/print.c index 206d0f7..4e7e5d7 100644 --- a/level_3/fss_extended_read/c/print.c +++ b/level_3/fss_extended_read/c/print.c @@ -118,7 +118,7 @@ extern "C" { #ifndef _di_fss_extended_read_print_line_first_locked_ f_status_t fss_extended_read_print_line_first_locked(fss_extended_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -133,7 +133,7 @@ extern "C" { #ifndef _di_fss_extended_read_print_line_first_unlocked_ f_status_t fss_extended_read_print_line_first_unlocked(fss_extended_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -148,7 +148,7 @@ extern "C" { #ifndef _di_fss_extended_read_print_line_last_locked_ f_status_t fss_extended_read_print_line_last_locked(fss_extended_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -164,7 +164,7 @@ extern "C" { #ifndef _di_fss_extended_read_print_line_last_unlocked_ f_status_t fss_extended_read_print_line_last_unlocked(fss_extended_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; diff --git a/level_3/fss_identify/c/print.c b/level_3/fss_identify/c/print.c index 52982c8..23a8454 100644 --- a/level_3/fss_identify/c/print.c +++ b/level_3/fss_identify/c/print.c @@ -59,7 +59,7 @@ extern "C" { #ifndef _di_fss_identify_print_line_first_locked_ f_status_t fss_identify_print_line_first_locked(fss_identify_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -74,7 +74,7 @@ extern "C" { #ifndef _di_fss_identify_print_line_first_unlocked_ f_status_t fss_identify_print_line_first_unlocked(fss_identify_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -89,7 +89,7 @@ extern "C" { #ifndef _di_fss_identify_print_line_last_locked_ f_status_t fss_identify_print_line_last_locked(fss_identify_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -105,7 +105,7 @@ extern "C" { #ifndef _di_fss_identify_print_line_last_unlocked_ f_status_t fss_identify_print_line_last_unlocked(fss_identify_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; diff --git a/level_3/fss_payload_read/c/print.c b/level_3/fss_payload_read/c/print.c index 1aa15e0..39e623c 100644 --- a/level_3/fss_payload_read/c/print.c +++ b/level_3/fss_payload_read/c/print.c @@ -128,7 +128,7 @@ extern "C" { #ifndef _di_fss_payload_read_print_line_first_locked_ f_status_t fss_payload_read_print_line_first_locked(fss_payload_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -143,7 +143,7 @@ extern "C" { #ifndef _di_fss_payload_read_print_line_first_unlocked_ f_status_t fss_payload_read_print_line_first_unlocked(fss_payload_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -158,7 +158,7 @@ extern "C" { #ifndef _di_fss_payload_read_print_line_last_locked_ f_status_t fss_payload_read_print_line_last_locked(fss_payload_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -174,7 +174,7 @@ extern "C" { #ifndef _di_fss_payload_read_print_line_last_unlocked_ f_status_t fss_payload_read_print_line_last_unlocked(fss_payload_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; diff --git a/level_3/fss_write/c/main/print.c b/level_3/fss_write/c/main/print.c index eeceb28..9c6b29d 100644 --- a/level_3/fss_write/c/main/print.c +++ b/level_3/fss_write/c/main/print.c @@ -166,7 +166,7 @@ extern "C" { #ifndef _di_fss_write_print_line_first_locked_ f_status_t fss_write_print_line_first_locked(fss_write_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -182,7 +182,7 @@ extern "C" { #ifndef _di_fss_write_print_line_first_unlocked_ f_status_t fss_write_print_line_first_unlocked(fss_write_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -198,7 +198,7 @@ extern "C" { #ifndef _di_fss_write_print_line_last_locked_ f_status_t fss_write_print_line_last_locked(fss_write_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -214,7 +214,7 @@ extern "C" { #ifndef _di_fss_write_print_line_last_unlocked_ f_status_t fss_write_print_line_last_unlocked(fss_write_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; diff --git a/level_3/iki_read/c/main/print.c b/level_3/iki_read/c/main/print.c index ff17c23..765ad1b 100644 --- a/level_3/iki_read/c/main/print.c +++ b/level_3/iki_read/c/main/print.c @@ -137,7 +137,7 @@ extern "C" { #ifndef _di_iki_read_print_line_first_locked_ f_status_t iki_read_print_line_first_locked(iki_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -152,7 +152,7 @@ extern "C" { #ifndef _di_iki_read_print_line_first_unlocked_ f_status_t iki_read_print_line_first_unlocked(iki_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -167,7 +167,7 @@ extern "C" { #ifndef _di_iki_read_print_line_last_locked_ f_status_t iki_read_print_line_last_locked(iki_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -182,7 +182,7 @@ extern "C" { #ifndef _di_iki_read_print_line_last_unlocked_ f_status_t iki_read_print_line_last_unlocked(iki_read_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; diff --git a/level_3/iki_write/c/main/print.c b/level_3/iki_write/c/main/print.c index 7790d01..0b23354 100644 --- a/level_3/iki_write/c/main/print.c +++ b/level_3/iki_write/c/main/print.c @@ -141,7 +141,7 @@ extern "C" { #ifndef _di_iki_write_print_line_first_locked_ f_status_t iki_write_print_line_first_locked(iki_write_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -156,7 +156,7 @@ extern "C" { #ifndef _di_iki_write_print_line_first_unlocked_ f_status_t iki_write_print_line_first_unlocked(iki_write_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -171,7 +171,7 @@ extern "C" { #ifndef _di_iki_write_print_line_last_locked_ f_status_t iki_write_print_line_last_locked(iki_write_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -186,7 +186,7 @@ extern "C" { #ifndef _di_iki_write_print_line_last_unlocked_ f_status_t iki_write_print_line_last_unlocked(iki_write_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; diff --git a/level_3/status_code/c/main/print.c b/level_3/status_code/c/main/print.c index 2792eb8..c3a9101 100644 --- a/level_3/status_code/c/main/print.c +++ b/level_3/status_code/c/main/print.c @@ -130,7 +130,7 @@ extern "C" { #ifndef _di_status_code_print_line_first_locked_ f_status_t status_code_print_line_first_locked(status_code_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -145,7 +145,7 @@ extern "C" { #ifndef _di_status_code_print_line_first_unlocked_ f_status_t status_code_print_line_first_unlocked(status_code_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -160,7 +160,7 @@ extern "C" { #ifndef _di_status_code_print_line_last_locked_ f_status_t status_code_print_line_last_locked(status_code_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -175,7 +175,7 @@ extern "C" { #ifndef _di_status_code_print_line_last_unlocked_ f_status_t status_code_print_line_last_unlocked(status_code_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; diff --git a/level_3/utf8/c/main/print.c b/level_3/utf8/c/main/print.c index a55f8d2..d42e1e1 100644 --- a/level_3/utf8/c/main/print.c +++ b/level_3/utf8/c/main/print.c @@ -347,7 +347,7 @@ extern "C" { #ifndef _di_utf8_print_line_first_locked_ f_status_t utf8_print_line_first_locked(utf8_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -363,7 +363,7 @@ extern "C" { #ifndef _di_utf8_print_line_first_unlocked_ f_status_t utf8_print_line_first_unlocked(utf8_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -379,7 +379,7 @@ extern "C" { #ifndef _di_utf8_print_line_last_locked_ f_status_t utf8_print_line_last_locked(utf8_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; @@ -395,7 +395,7 @@ extern "C" { #ifndef _di_utf8_print_line_last_unlocked_ f_status_t utf8_print_line_last_unlocked(utf8_setting_t * const setting, const fl_print_t print) { - if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not; if (!F_status_is_error(setting->status)) { if (print.verbosity == f_console_verbosity_error_e) return F_output_not;