rem: memcpy(buffer, _h->body.s, _h->body.len); buffer[_h->body.len] = '\0';  if (strstr(buffer, "application/pidf+xml")) { *_a = DOC_PIDF; } else if (strstr(buffer, "application/xpidf+xml")) { *_a = DOC_XPIDF; } else if (strstr(buffer, "text/lpidf")) { *_a = DOC_LPIDF; } else { *_a = DOC_LPIDF; }  pkg_free(buffer); return 0;
context: int parse_accept(struct hdr_field* _h, doctype_t* _a){	char* buffer;	     /*	      * All implementation must support xpidf so make	      * it the default	      */	*_a = DOC_LPIDF;	buffer = pkg_malloc(_h->body.len + 1);	if (!buffer) {		paerrno = PA_NO_MEMORY;		LOG(L_ERR, "parse_accept(): No memory left\n");		return -1;	}	memcpy(buffer, _h->body.s, _h->body.len);	buffer[_h->body.len] = '\0';		if (strstr(buffer, "application/pidf+xml")) {		*_a = DOC_PIDF;	} else if (strstr(buffer, "application/xpidf+xml")) {		*_a = DOC_XPIDF;	} else if (strstr(buffer, "text/lpidf")) {		*_a = DOC_LPIDF;	} else {		*_a = DOC_LPIDF;	}		pkg_free(buffer);	return 0;}