static void add_strategies(....) { struct strategy *list = NULL; .... memset(&list, 0, sizeof(list)); .... }