X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fgdu.cpp;h=467ded2b2aa7b97d7968b9ee505c58746f163491;hb=805b4fdf7b70b0e9b298064f24ceff0c1d38e05b;hp=d84a45e5d12d590d686d37d1dbb01026dfce1a58;hpb=711105a336b155f2b7f098cf84f2e30952cb8588;p=yazpp-moved-to-github.git diff --git a/src/gdu.cpp b/src/gdu.cpp index d84a45e..467ded2 100644 --- a/src/gdu.cpp +++ b/src/gdu.cpp @@ -1,5 +1,5 @@ /* This file is part of the yazpp toolkit. - * Copyright (C) 1998-2012 Index Data and Mike Taylor + * Copyright (C) 1998-2013 Index Data and Mike Taylor * See the file LICENSE for details. */ @@ -44,7 +44,8 @@ void GDU::base(Z_GDU *gdu, ODR encode) char *buf = odr_getbuf(encode, &len, 0); odr_setbuf(m_decode, buf, len, 0); - z_GDU(m_decode, &m_gdu, 0, 0); + if (!z_GDU(m_decode, &m_gdu, 0, 0)) + m_gdu = 0; } odr_destroy(encode); }