From: Adam Dickmeiss Date: Tue, 11 Sep 2007 15:16:20 +0000 (+0000) Subject: Handle NULL SRU addinfo in printing X-Git-Tag: YAZ.3.0.12~4 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=6aed21d6613e5071a29885e1e1575c890adc3e0e Handle NULL SRU addinfo in printing --- diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 1668367..3bd5fe4 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: zoomsh.c,v 1.49 2007-09-08 06:17:45 adam Exp $ + * $Id: zoomsh.c,v 1.50 2007-09-11 15:16:20 adam Exp $ */ /** \file zoomsh.c @@ -192,7 +192,7 @@ static void display_records(ZOOM_connection c, int error = ZOOM_record_error(rec, &msg, &addinfo, &diagset); printf("%d %s: %s (%s:%d) %s\n", pos, (db ? db : "unknown"), - msg, diagset, error, addinfo); + msg, diagset, error, addinfo ? addinfo : "none"); } else {