aboutsummaryrefslogtreecommitdiff
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
parente2a51234182f85b77b9d6bbb88aa175d02c76132 (diff)
- Fixed the return value of Cache_parse_multiple_field.
-rw-r--r--ChangeLog1
-rw-r--r--src/cache.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index be744350..0de378fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -80,6 +80,7 @@ dillo-fltk2
- Enabled colspan=0 in tables parsing.
- Fixed a memory leak in cookies.c
- Added "standard_widget_colors" preference. It allows a more stylish look.
+ - Fixed the return value of Cache_parse_multiple_field.
Patches: place
+- Fixed a problem with locally-installed dpis.
- Added code for optional image loading (nice interface) very advanced!
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;
}