Merge pull request #170 from xrmx/coverity9

A few more coverity fixes
This commit is contained in:
unbit
2013-03-03 13:46:35 -08:00
4 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ char *ini_get_key(char *key) {
return ptr;
}
char *ini_get_line(char *ini, off_t size) {
char *ini_get_line(char *ini, size_t size) {
off_t i;
char *ptr = ini;
+1
View File
@@ -148,6 +148,7 @@ static time_t parse_http_date(char *date, uint16_t len) {
case 'N':
hdtm.tm_mon = 10;
break;
case 'D':
hdtm.tm_mon = 11;
+1 -1
View File
@@ -61,7 +61,7 @@ int yaml_get_depth(char *line) {
return depth;
}
char *yaml_get_line(char *yaml, off_t size) {
char *yaml_get_line(char *yaml, size_t size) {
off_t i;
char *ptr = yaml;
+2 -5
View File
@@ -152,12 +152,9 @@ int http_response_parse(struct http_session *hr, struct uwsgi_buffer *ub, size_t
}
}
hr->session.can_keepalive = hr->session.can_keepalive;
}
else if (hr->session.can_keepalive) {
#else
if (hr->session.can_keepalive) {
} else
#endif
if (hr->session.can_keepalive) {
if (uhttp.auto_chunked) {
char cr = buf[len-2];
char nl = buf[len-1];