From: Adam Dickmeiss Date: Thu, 10 Sep 2009 07:13:18 +0000 (+0200) Subject: Fix yaz-marcdump -n (bug #3028). X-Git-Tag: v3.0.49~11^2~5 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=fa45ad3fa8a1dae7d030efd16ce6371777566813;p=yaz-moved-to-github.git Fix yaz-marcdump -n (bug #3028). --- diff --git a/util/marcdump.c b/util/marcdump.c index e09de98..15021fe 100644 --- a/util/marcdump.c +++ b/util/marcdump.c @@ -341,7 +341,7 @@ static void dump(const char *fname, const char *from, const char *to, } len_result = rlen; r = yaz_marc_decode_buf(mt, buf, -1, &result, &len_result); - if (r > 0 && result) + if (r > 0 && result && len_result) { if (fwrite(result, len_result, 1, stdout) != 1) {