2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/list.c: Remove historical comment.
+ * libmisc/list.c: Added assertions for non NULL parameters.
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
char **tmp;
assert (NULL != member);
+ assert (NULL != list);
/*
* Scan the list for the new name. Return the original list
char **tmp;
assert (NULL != member);
+ assert (NULL != list);
/*
* Scan the list for the old name. Return the original list
int i;
char **tmp;
+ assert (NULL != list);
+
for (i = 0; NULL != list[i]; i++);
tmp = (char **) xmalloc ((i + 1) * sizeof (char *));
bool is_on_list (char *const *list, const char *member)
{
assert (NULL != member);
+ assert (NULL != list);
while (NULL != *list) {
if (strcmp (*list, member) == 0) {