summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bcd78ed)
raw | patch | inline | side by side (parent: bcd78ed)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 2 Dec 2006 16:51:58 +0000 (17:51 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 2 Dec 2006 16:51:58 +0000 (17:51 +0100) |
src/utils_ignorelist.c | patch | blob | history |
diff --git a/src/utils_ignorelist.c b/src/utils_ignorelist.c
index 27eb987c94fec0c534a5e82417a36e904cbefee3..532eb4b0029837318cf60a2adbecf901a2590b3a 100644 (file)
--- a/src/utils_ignorelist.c
+++ b/src/utils_ignorelist.c
{
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);