free(sn->variables[i]);
}
free(sn->variables);
- for(i = 0; sn->generics[i] != NULL; i++){
+ for(i = 0; sn->generics[i] != NULL; i++) {
int j;
- for(j = 0; sn->generics[i][j] != NULL; j++) sn_generic_free(sn->generics[i][j]);
+ for(j = 0; sn->generics[i][j] != NULL; j++) sn_generic_free(sn->generics[i][j]);
free(sn->generics[i]);
}
free(sn->generics);
}
int j;
struct sn_generic*** oldgens = sn->generics;
- for(j = 0; oldgens[j] != NULL; j++);
+ for(j = 0; oldgens[j] != NULL; j++)
+ ;
sn->generics = malloc(sizeof(struct sn_generic**) * (j + 2));
- for(j = 0; oldgens[j] != NULL; j++){
+ for(j = 0; oldgens[j] != NULL; j++) {
sn->generics[j] = oldgens[j];
}
sn->generics[j] = gens;