Fix the build error for gcc-14 26/312326/1 accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_toolchain accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen tizen_9.0 accepted/tizen/9.0/unified/20241030.232910 accepted/tizen/unified/20240611.123411 accepted/tizen/unified/dev/20240620.005858 accepted/tizen/unified/toolchain/20240610.173022 accepted/tizen/unified/x/20240610.223551 accepted/tizen/unified/x/asan/20240625.092102 tizen_9.0_m2_release
authorWootak Jung <wootak.jung@samsung.com>
Thu, 6 Jun 2024 22:39:57 +0000 (07:39 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Thu, 6 Jun 2024 23:00:59 +0000 (08:00 +0900)
Change-Id: I3a0d830a50038d2293bf61843b29a3e2a3becc44
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
src/notifier.c
src/notifier_internal.c

index 5b87c8c78808bca251fc96ce8c25eef5e1cfab40..cb7317d0d7f3b909378e31a2646e0e470e873a33 100644 (file)
@@ -747,7 +747,7 @@ gboolean ui_notifier_init(TcorePlugin *plugin)
        ui_noti_data *ud = NULL;
        guint id;
 
-       ud = calloc(sizeof(ui_noti_data), 1);
+       ud = calloc(1, sizeof(ui_noti_data));
        if (ud == NULL) {
                err("memory allocation failed");
                return FALSE;
index bc2573b0cb5b95bc7e071755e50e8cd8c56b7107..93b444126b944a6c6b05eaddad1dd932cc828bc9 100644 (file)
@@ -143,7 +143,7 @@ void launch_no_svc_with_manual_plmn_popup(ui_noti_data *ud, sim_slot_id id)
        if (tfeature_is_supported(TFEATURE_UI_NO_SVC_MANUAL_PLMN_CHECK)) {
                unsigned int timeout = NO_SVC_WAITING_TIMEOUT;
                cancel_no_svc_with_manual_plmn_popup(ud, id);
-               cb_data = calloc(sizeof(manual_plmn_data), 1);
+               cb_data = calloc(1, sizeof(manual_plmn_data));
                if (cb_data == NULL) {
                        err("memory allocation failed");
                        return;