Changeset 8374 for trunk/psLib/src/types
- Timestamp:
- Aug 15, 2006, 5:28:13 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/types/psMetadata.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/types/psMetadata.c
r8312 r8374 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.12 3$ $Name: not supported by cvs2svn $15 * @date $Date: 2006-08-1 4 20:05:05$14 * @version $Revision: 1.124 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2006-08-16 03:28:13 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 384 384 PS_METADATA_ITEM_COPY_CASE(STRING,V); // This will copy the string, not point at it. 385 385 case PS_DATA_VECTOR: { 386 PS_ASSERT_PTR_NON_NULL(in->data.V, NULL); 386 387 psVector *vecCopy = psVectorCopy(NULL, (psVector*)(in->data.V), 387 388 ((psVector*)(in->data.V))->type.type); 388 if (vecCopy == NULL) { 389 psError(PS_ERR_BAD_PARAMETER_NULL, false, 390 "Error copying vector. Vector skipped.\n"); 391 } else { 392 newItem = psMetadataItemAlloc(in->name, PS_DATA_VECTOR, in->comment, vecCopy); 393 psFree(vecCopy); // Drop reference 394 } 389 //Following condition was removed b/c it doesn't seem possible for a 390 //non-NULL vector to be returned for non-NULL input 391 // if (vecCopy == NULL) { 392 // psError(PS_ERR_BAD_PARAMETER_NULL, false, 393 // "Error copying vector. Vector skipped.\n"); 394 // } else { 395 newItem = psMetadataItemAlloc(in->name, PS_DATA_VECTOR, in->comment, vecCopy); 396 psFree(vecCopy); // Drop reference 397 // } 395 398 break; 396 399 } … … 455 458 psErrorStackPrint(stderr, "Error copying %s (%s) in the metadata\n", inItem->name, 456 459 inItem->comment); 460 printf("\nok we're here\n"); 457 461 } 458 462 psFree(newItem); // Drop reference
Note:
See TracChangeset
for help on using the changeset viewer.
