Changeset 18185
- Timestamp:
- Jun 18, 2008, 4:19:02 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/concepts/pmConceptsRead.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConceptsRead.c
r18163 r18185 371 371 PS_ASSERT_PTR_NON_NULL(config, NULL); 372 372 373 psDB *db = pmConfigDB(config); // Database handle374 if (!db) {375 psErrorClear();376 psWarning("Unable to initialise database to write concepts.");377 return NULL;378 }379 380 373 psMetadataItem *item = psMetadataLookup(database, name); // Item to return 381 374 if (item && item->type == PS_DATA_METADATA) { … … 389 382 if (item->type != PS_DATA_STRING) { 390 383 psWarning("%s in DATABASE in camera format is not of type STR --- ignored.", name); 384 return NULL; 385 } 386 387 psDB *db = pmConfigDB(config); // Database handle 388 if (!db) { 389 psErrorClear(); 390 psWarning("Unable to initialise database to write concepts."); 391 391 return NULL; 392 392 }
Note:
See TracChangeset
for help on using the changeset viewer.
