Fix size of glist 63/279863/1
authorLohit Agarwalla <l.agarwalla@samsung.com>
Thu, 18 Aug 2022 11:55:05 +0000 (17:25 +0530)
committerLohit Agarwalla <l.agarwalla@samsung.com>
Thu, 18 Aug 2022 11:55:05 +0000 (17:25 +0530)
Change-Id: Ic2f25e336f0b885a1e1b9666f52395503ca4acd3
Signed-off-by: Lohit Agarwalla <l.agarwalla@samsung.com>
server/fido_server.c

index 6f41dc0..1521f69 100755 (executable)
@@ -160,7 +160,7 @@ _asm_get_info_cb(GList *asm_resp_list, void *user_data)
                        int i = 0;
                        int str_list_len = g_list_length(asm_resp_list);
                        GList *asm_resp_list_iter = g_list_first(asm_resp_list);
-                       char **asm_resp_json_arr = calloc(str_list_len + 1, sizeof(int));
+                       char **asm_resp_json_arr = calloc(str_list_len + 1, sizeof(char *));
 
                        if (asm_resp_json_arr != NULL) {
                                while (asm_resp_list_iter != NULL) {