summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-02-03 22:54:28 +0100
committerjcid <devnull@localhost>2008-02-03 22:54:28 +0100
commit17c2928d46ddc0fe713caef5a139d88ca8bcf087 (patch)
tree1c91690841307122b44d713eeef1ef527df28b02 /src
parente2a51234182f85b77b9d6bbb88aa175d02c76132 (diff)
- Fixed the return value of Cache_parse_multiple_field.
Diffstat (limited to 'src')
-rw-r--r--src/cache.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cache.c b/src/cache.c
index 9ad2a60c..56389b14 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -448,6 +448,11 @@ static Dlist *Cache_parse_multiple_fields(const char *header,
dList_append(fields, field);
}
}
+
+ if (dList_length(fields) == 0) {
+ dList_free(fields);
+ fields = NULL;
+ }
return fields;
}