Author: adrian.chadd
Date: Tue Apr 21 22:26:10 2009
New Revision: 13978
Modified:
branches/LUSCA_HEAD/libsqtlv/tlv.c
Log:
NULL the next pointer; this was implied by the mempool use but is now not
happening!
Modified: branches/LUSCA_HEAD/libsqtlv/tlv.c
==============================================================================
--- branches/LUSCA_HEAD/libsqtlv/tlv.c (original)
+++ branches/LUSCA_HEAD/libsqtlv/tlv.c Tue Apr 21 22:26:10 2009
@@ -23,6 +23,7 @@
t->type = (char) type;
t->length = (int) len;
t->value = xmalloc(len);
+ t->next = NULL;
xmemcpy(t->value, ptr, len);
*tail = t;
return &t->next; /* return new tail pointer */
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---