what are the errors here

        if (token[0] != '\t' && token[0] != '#' && token[0] != '\n'){
            // we are in target line so we deal with target and dependencies together
                // we are 
                target = token; // assign first token to variable - target to store name
                dependency = NULL;
                while(token != NULL){
                    if (token[0] == ':'){
                        token = strtok(NULL, " "); // go to the next token
                    }
                    else{
                        // in the dependency
                        // create a dependency for each string and keep track of count to malloc at the end
                        // add each dependency into an array of dependencies at the end if dependency.rule is not in the rule
                        int i;
                        if (dependency == NULL){
                                dependency = malloc(sizeof(Dependency));
                                dependency->rule = malloc(sizeof(Rule));
                                dependency->rule->target = strdup(token);
                                dependency->rule->actions = NULL;
                                dependency->rule->dependencies = NULL;
                                dependency->next_dep = malloc(sizeof(Dependency));
                                dependency->next_dep = NULL;
                            }
                        else{
                            Dependency *curr1 = dependency;
                            while (curr1 != NULL && strcmp(curr1->rule->target, target) != 0){
                                curr1 = curr1->next_dep;
                            }
                            if (curr1 == NULL){ // no token in the lst
                                curr1->rule->target = token;
                            }
                            else{
                                token = strtok(NULL, " "); // skip to next dependency
                                }
   
                        }

                    }
                    token = strtok(NULL, " ");

                }