diff --git a/apteryx.c b/apteryx.c index 934abd0..31a4187 100644 --- a/apteryx.c +++ b/apteryx.c @@ -1317,8 +1317,8 @@ apteryx_search_simple (const char *path) } else { - ASSERT (asprintf (&tmp, "%s", (char *) iter->data) > 0, tmp = NULL, - tmp = NULL, "SEARCH: Memory allocation failure\n"); + ASSERT (asprintf (&tmp, "%s", (char *) iter->data) > 0, tmp = NULL, + "SEARCH: Memory allocation failure\n"); } if (result) free (result);