Fixed the build error using gcc 13 65/294965/4
authorWootak Jung <wootak.jung@samsung.com>
Thu, 29 Jun 2023 23:47:18 +0000 (08:47 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Fri, 30 Jun 2023 00:01:33 +0000 (09:01 +0900)
Change-Id: I11ddcfd23d8d0c883b87c530e127a0ec5b8afd0d

tools/pskey_get.c

index 6941890..a540aad 100755 (executable)
@@ -218,7 +218,11 @@ static cmd_par_table *bt_cmd_table_match(cmd_par *cmd)
        int i;
        cmd_par_table *pTable = NULL;
        int len = sizeof(g_pskey_table) / sizeof(cmd_par_table);
+#ifndef TIZEN_FEATURE_BLUEZ_MODIFY
        if(NULL == cmd->item)
+#else
+       if (NULL == cmd || NULL == cmd->item)
+#endif
                return NULL;
        for(i = 0; i < len; i++)
        {