how can i fix the error in line 3

int test(char *a, char*b){
         for(int i; i<9; i++){
                if(*b[i] != "-" && *b[i] != *a[i]){
                        return 1;
                }

        }
        return 0;
}

int main(int argc, char** argv){
        return test(argv[1], argv[2]);
}