Changeset 11816 for trunk/ippTools/src/dettool.c
- Timestamp:
- Feb 14, 2007, 5:32:33 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/dettool.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/dettool.c
r11713 r11816 422 422 } 423 423 424 psString label = psMetadataLookupStr(&status, config->args, "-label"); 425 if (!status) { 426 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -label"); 427 return false; 428 } 429 424 430 // we have to support multipe exp_tags 425 431 psMetadataItem *item = psMetadataLookup(config->args, "-exp_tag"); … … 512 518 time_end, 513 519 use_begin, 514 use_end 520 use_end, 521 0.0, // solang min 522 0.0, // solang max 523 label, 524 0 // parent 515 525 ); 516 526 psFree(registered); … … 1062 1072 use_end = NULL; 1063 1073 } 1074 } 1075 1076 psString label = psMetadataLookupStr(&status, config->args, "-label"); 1077 if (!status) { 1078 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -label"); 1079 return false; 1064 1080 } 1065 1081 … … 1154 1170 time_end, 1155 1171 use_begin, 1156 use_end 1172 use_end, 1173 0.0, // solang min 1174 0.0, // solang max 1175 label, 1176 0 // parent 1157 1177 ); 1158 1178 psFree(registered); … … 6273 6293 } 6274 6294 6295 psString parent = psMetadataLookupStr(&status, config->args, "-parent"); 6296 if (!status) { 6297 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -parent"); 6298 return false; 6299 } 6300 6301 psString label = psMetadataLookupStr(&status, config->args, "-label"); 6302 if (!status) { 6303 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -label"); 6304 return false; 6305 } 6306 6275 6307 if (!psDBTransaction(config->dbh)) { 6276 6308 psError(PS_ERR_UNKNOWN, false, "database error"); … … 6301 6333 time_end, 6302 6334 use_begin, 6303 use_end 6335 use_end, 6336 0.0, // solang min 6337 0.0, // solang max 6338 label, // label 6339 atoi(parent) 6304 6340 )) { 6305 6341 psError(PS_ERR_UNKNOWN, false, "database error");
Note:
See TracChangeset
for help on using the changeset viewer.
