Changeset 9919
- Timestamp:
- Nov 8, 2006, 5:50:08 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/types/psMetadataConfig.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/types/psMetadataConfig.c
r9918 r9919 10 10 * @author Eric Van Alst, MHPCC 11 11 * 12 * @version $Revision: 1.11 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-11-09 03: 22:38 $12 * @version $Revision: 1.116 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-11-09 03:50:08 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1407 1407 } 1408 1408 1409 // split the input string into an array of lines 1410 psList *doc = psStringSplit(str, "\n", true); 1411 if (!doc) { 1412 psError(PS_ERR_UNKNOWN, false, "failed to split string: %s", str); 1413 if (allocedMD) { 1414 psFree(md); 1415 } 1416 return NULL; 1417 } 1418 if (psListLength(doc) == 0) { 1419 psError(PS_ERR_UNKNOWN, false, "string contained no lines"); 1420 psFree(doc); 1421 if (allocedMD) { 1422 psFree(md); 1423 } 1424 return NULL; 1425 } 1426 1409 1427 // Allocate array to store parse level information 1410 1428 psArray *parseLevelInfoArray = psArrayAllocEmpty(INITIAL_LENGTH); … … 1415 1433 psArrayAdd(parseLevelInfoArray, 0, topLevelInfo); 1416 1434 psFree(topLevelInfo); 1417 1418 psList *doc = psStringSplit(str, "\n", true);1419 if (!doc) {1420 psError(PS_ERR_UNKNOWN, false, "failed to split string: %s", str);1421 psFree(parseLevelInfoArray);1422 if (allocedMD) {1423 psFree(md);1424 }1425 return NULL;1426 }1427 if (psListLength(doc) == 0) {1428 psError(PS_ERR_UNKNOWN, false, "string contained no lines");1429 psFree(doc);1430 psFree(parseLevelInfoArray);1431 if (allocedMD) {1432 psFree(md);1433 }1434 return NULL;1435 }1436 1435 1437 1436 // clear the error stack so we can call psError(..., false, ...) and let
Note:
See TracChangeset
for help on using the changeset viewer.
