Changeset 17226 for trunk/ippTools/src/camtool.c
- Timestamp:
- Mar 28, 2008, 5:00:10 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/camtool.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/camtool.c
r17219 r17226 162 162 && !psMetadataLookupBool(NULL, config->args, "-all")) { 163 163 psFree(where); 164 where = NULL;165 164 psError(PXTOOLS_ERR_DATA, false, "search parameters are required"); 166 165 return false; … … 179 178 if (!query) { 180 179 psError(PXTOOLS_ERR_DATA, false, "failed to retreive SQL statement"); 180 psFree(where); 181 181 return false; 182 182 } … … 184 184 if (where && psListLength(where->list)) { 185 185 psString whereClause = psDBGenerateWhereConditionSQL(where, ""); 186 psFree(where);187 186 psStringAppend(&query, " AND %s", whereClause); 188 187 psFree(whereClause); 189 188 } 189 190 psFree(where); 190 191 191 192 if (!p_psDBRunQuery(config->dbh, query)) { … … 342 343 && !psMetadataLookupBool(NULL, config->args, "-all")) { 343 344 psFree(where); 344 where = NULL;345 345 psError(PXTOOLS_ERR_DATA, false, "search parameters are required"); 346 346 return false; … … 843 843 && !psMetadataLookupBool(NULL, config->args, "-all")) { 844 844 psFree(where); 845 where = NULL;846 845 psError(PXTOOLS_ERR_DATA, false, "search parameters are required"); 847 846 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
