Fixed error clearing contact list

This commit is contained in:
James Booth
2013-02-10 02:17:22 +00:00
parent 84a6ac1949
commit 84a4ab9545
5 changed files with 34 additions and 5 deletions

View File

@@ -31,7 +31,6 @@ Resource * resource_new(const char * const name, const char * const show,
const char * const status, const int priority, const char * const caps_str)
{
assert(name != NULL);
assert(show != NULL);
Resource *new_resource = malloc(sizeof(struct resource_t));
new_resource->name = strdup(name);
if (show == NULL || (strcmp(show, "") == 0))