vector icon indicating copy to clipboard operation
vector copied to clipboard

The code in vector_move may have problem

Open dzwduan opened this issue 4 years ago • 0 comments

int vector_move(Vector* destination, Vector* source) { assert(destination != NULL); assert(source != NULL);

if (destination == NULL) return VECTOR_ERROR;
if (source == NULL) return VECTOR_ERROR;

*destination = *source;
source->data = NULL;

return VECTOR_SUCCESS;

}

should destination = source

dzwduan avatar Dec 30 '21 11:12 dzwduan