* return;
**/
+#if HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include "common.h"
#include "utils_debug.h"
#include "utils_ignorelist.h"
{
int ret;
size_t entry_len;
- char *entry_copy;
if (il == NULL)
{
/* regex string is enclosed in "/.../" */
if ((entry_len > 2) && (entry[0] == '/') && entry[entry_len - 1] == '/')
{
+ char *entry_copy;
+
/* We need to copy `entry' since it's const */
entry_copy = smalloc (entry_len);
memset (entry_copy, '\0', entry_len);
{
ignorelist_item_t *traverse;
+ assert (il != NULL);
+
/* if no entries, collect all */
if (il->head == NULL)
return (0);
+ if ((entry == NULL) || (strlen (entry) == 0))
+ return (0);
+
/* traverse list and check entries */
for (traverse = il->head; traverse != NULL; traverse = traverse->next)
{