From: Michael Wallner Date: Tue, 14 Feb 2006 20:17:19 +0000 (+0000) Subject: - fix stupidities X-Git-Tag: RELEASE_0_23_0~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=bb35d0782f0a00906a3cfac4c8e4e3223bb1cffe;p=m6w6%2Fext-http - fix stupidities --- diff --git a/http_cookie_api.c b/http_cookie_api.c index d43d0fe..fb3a950 100644 --- a/http_cookie_api.c +++ b/http_cookie_api.c @@ -107,7 +107,7 @@ static inline void _http_cookie_list_set_item_ex(http_cookie_list *list, const c } else if (!strcasecmp(key, "domain")) { STR_SET(list->domain, estrndup(value, value_len)); } else if (!strcasecmp(key, "expires")) { - const char *date = estrndup(value, value_len); + char *date = estrndup(value, value_len); list->expires = http_parse_date(date); efree(date); } else if (!strcasecmp(key, "secure")) { @@ -321,7 +321,7 @@ failure: http_cookie_list_dtor(list); } efree(s); - return FAILURE; + return NULL; } /* }}} */