Changeset 14744 for trunk/psModules/src/config/pmConfig.c
- Timestamp:
- Sep 4, 2007, 4:30:30 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/config/pmConfig.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfig.c
r14675 r14744 4 4 * @author EAM (IfA) 5 5 * 6 * @version $Revision: 1.10 3$ $Name: not supported by cvs2svn $7 * @date $Date: 2007-0 8-27 21:56:17$6 * @version $Revision: 1.104 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2007-09-05 02:30:30 $ 8 8 * 9 9 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 1120 1120 PS_ASSERT_INT_NONNEGATIVE(*argc, NULL); 1121 1121 PS_ASSERT_PTR_NON_NULL(argv, NULL); 1122 PS_ASSERT_STRING_NON_EMPTY(file, NULL);1123 PS_ASSERT_STRING_NON_EMPTY(list, NULL);1124 1122 1125 1123 int Narg; … … 1131 1129 // maybe a comma-separated list of words 1132 1130 // each word may be a glob: "file*.fits" 1133 if ( (Narg = psArgumentGet (*argc, argv, file))) {1131 if (file && strlen(file) > 0 && (Narg = psArgumentGet (*argc, argv, file))) { 1134 1132 1135 1133 // select the word after 'file' and split by comma … … 1160 1158 1161 1159 // load the list from the supplied text file 1162 if ( (Narg = psArgumentGet (*argc, argv, list))) {1160 if (list && strlen(list) > 0 && (Narg = psArgumentGet (*argc, argv, list))) { 1163 1161 int nItems; 1164 1162 char line[1024]; // XXX limits the list lines to 1024 chars … … 1198 1196 PS_ASSERT_PTR_NON_NULL(metadata, false); 1199 1197 PS_ASSERT_STRING_NON_EMPTY(name, NULL); 1200 PS_ASSERT_STRING_NON_EMPTY(file, NULL);1201 PS_ASSERT_STRING_NON_EMPTY(list, NULL);1202 1198 1203 1199 psErrorClear(); // pmConfigFileSets may or may not call psError, so
Note:
See TracChangeset
for help on using the changeset viewer.
