Changeset 5 in Main for trunk/Server
- Timestamp:
- Sep 13, 2024, 7:08:00 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/config.c
r4 r5 23 23 char* l = cm_trim(line); 24 24 if(strlen(l) > 0 && l[0] != '#'){ 25 printf("[%s]\n", l); 25 char** r = cm_split(l, " \t"); 26 int i; 27 if(cm_strcaseequ(r[0], "Include") || cm_strcaseequ(r[0], "IncludeOptional")){ 28 for(i = 1; r[i] != NULL; i++){ 29 if(tw_config_read(r[i]) != 0 && cm_strcaseequ(r[0], "Include")){ 30 for(i = 0; r[i] != NULL; i++) free(r[i]); 31 free(r); 32 free(line); 33 free(l); 34 fclose(f); 35 return 1; 36 } 37 } 38 } 39 for(i = 0; r[i] != NULL; i++) free(r[i]); 40 free(r); 26 41 } 27 42 free(l); … … 40 55 return 0; 41 56 }else{ 57 cm_log("Config", "Could not open the file"); 42 58 return 1; 43 59 }
Note:
See TracChangeset
for help on using the changeset viewer.