Changeset 26989 for trunk/ippTools/src/stacktool.c
- Timestamp:
- Feb 18, 2010, 12:37:08 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/stacktool.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/stacktool.c
r26984 r26989 158 158 // these are used to build the HAVING restriction 159 159 PXOPT_COPY_S32(config->args, having, "-min_num", "num_warp", ">="); 160 PXOPT_LOOKUP_S32(min_num, config->args, "-min_new", false, false); 161 if (min_num < 2) { 162 psError(PXTOOLS_ERR_CONFIG, true, "Require at least two inputs for a stack, but min_num = %d", 163 min_num); 164 psFree(where); 165 psFree(having); 166 return false; 167 } 160 168 161 169 // other options applied outside of the WHERE … … 168 176 169 177 if (!psListLength(where->list)) { 178 psError(PXTOOLS_ERR_CONFIG, false, "search parameters are required"); 170 179 psFree(where); 171 ps Error(PXTOOLS_ERR_CONFIG, false, "search parameters are required");180 psFree(having); 172 181 return false; 173 182 } … … 176 185 if (!select) { 177 186 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement"); 187 psFree(where); 188 psFree(having); 178 189 return false; 179 190 }
Note:
See TracChangeset
for help on using the changeset viewer.
