- Timestamp:
- Oct 17, 2009, 2:35:06 PM (15 years ago)
- Location:
- Daodan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/Daodan.c
r466 r467 450 450 falseoption = (option[1] == 'n' || option[1] == 'N') && (option[2] = 'o' || option[2] == 'O'); 451 451 if (i < (argc - 1) && argv[i + 1][0] != '-') 452 DDrIniCallback(section, true, option + (falseoption ? 3 : 1), argv[++i]);452 DDrIniCallback(section, true, option + 1, argv[++i]); 453 453 else 454 454 DDrIniCallback(section, true, option + (falseoption ? 3 : 1), (falseoption ? "false" : "true")); … … 460 460 ini_section = s_options; 461 461 if (i < (argc - 1) && argv[i + 1][0] != '-') 462 DDrIniCallback(NULL, false, section + (falseoption ? 2 : 0), argv[++i]);462 DDrIniCallback(NULL, false, section, argv[++i]); 463 463 else 464 464 DDrIniCallback(NULL, false, section + (falseoption ? 2 : 0), (falseoption ? "false" : "true"));
Note:
See TracChangeset
for help on using the changeset viewer.