From: Adam Dickmeiss Date: Wed, 25 Feb 2004 10:37:02 +0000 (+0000) Subject: Initialize content_{len,buf} always X-Git-Tag: YAZ.2.0.15~4 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=993e46ad4aa8360fb25367191b760f3990965e16 Initialize content_{len,buf} always --- diff --git a/src/zgdu.c b/src/zgdu.c index e5458e3..15683d4 100644 --- a/src/zgdu.c +++ b/src/zgdu.c @@ -2,7 +2,7 @@ * Copyright (c) 2002-2004, Index Data. * See the file LICENSE for details. * - * $Id: zgdu.c,v 1.7 2004-02-23 10:14:06 adam Exp $ + * $Id: zgdu.c,v 1.8 2004-02-25 10:37:02 adam Exp $ */ #include @@ -247,6 +247,9 @@ int z_GDU (ODR o, Z_GDU **p, int opt, const char *name) hr = (*p)->u.HTTP_Response = (Z_HTTP_Response *) odr_malloc(o, sizeof(*hr)); + hr->content_buf = 0; + hr->content_len = 0; + po = i = 5; while (i < o->size-2 && o->buf[i] != ' ' && o->buf[i] != '\r') i++;