Fix the build error for gcc-14 24/312324/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.234625 accepted/tizen/unified/20240611.123432 accepted/tizen/unified/dev/20240620.005904 accepted/tizen/unified/toolchain/20240610.173038 accepted/tizen/unified/x/20240610.223608 accepted/tizen/unified/x/asan/20240625.091937 tizen_9.0_m2_release
authorWootak Jung <wootak.jung@samsung.com>
Thu, 6 Jun 2024 22:40:20 +0000 (07:40 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Thu, 6 Jun 2024 22:59:09 +0000 (07:59 +0900)
Change-Id: I250a7868f373dd0f2797964fa6679e46551f83e4
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
src/vdpram.c

index ec81ee8..5283dd5 100644 (file)
@@ -190,7 +190,7 @@ static int __tty_setparms(int fd,
 
        dbg("Function Enterence.");
 
-       old_setting = calloc(sizeof(tty_old_setting_t), 1);
+       old_setting = calloc(1, sizeof(tty_old_setting_t));
        if (old_setting == NULL)
                return TAPI_API_SYSTEM_OUT_OF_MEM;