Author: adrian.chadd
Date: Fri Feb 6 12:59:58 2009
New Revision: 13803
Modified:
branches/LUSCA_HEAD/lib/Vector.c
Log:
Fix from Issue #2
Modified: branches/LUSCA_HEAD/lib/Vector.c
==============================================================================
--- branches/LUSCA_HEAD/lib/Vector.c (original)
+++ branches/LUSCA_HEAD/lib/Vector.c Fri Feb 6 12:59:58 2009
@@ -13,7 +13,7 @@
void *t;
if (new_count < v->alloc_count)
- return;
+ return 0;
t = xrealloc(v->data, (v->obj_size * new_count));
if (t == NULL)
@@ -77,7 +77,6 @@
void *
vector_insert(vector_t *v, int offset)
{
- void *t;
int position = offset;
if (position >= v->alloc_count)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---