1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/misc/libmcal/files/patch-icap_icap.c
Thierry Thomas 27fa7bdddb - Fix build with gcc42 (lvalue required as left operand of assignment).
Since I'm here:

- update my e-mail;
- set USE_LDCONFIG;
- fix pkg-message for package installation;
- use DOCSDIR.

Reported by:	pointyhat via Kris
2007-03-20 21:22:49 +00:00

12 lines
338 B
C

--- icap/icap.c.orig Tue Jan 28 18:31:33 2003
+++ icap/icap.c Tue Mar 20 21:49:33 2007
@@ -159,7 +159,7 @@
if (!reopen) {
if ((stream = calloc(1, sizeof(*stream))) == NULL)
goto fail;
- if ((DATA = calloc(1, sizeof(*DATA))) == NULL)
+ if ((stream->data = calloc(1, sizeof(*DATA))) == NULL)
goto fail;
/* Copy host. */