careful printing null string

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10252 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2004-08-27 22:54:08 +00:00
parent b155f5d09c
commit 4b57fb2451

View File

@ -41,7 +41,7 @@ test_query (Query *q, SCM val2str)
if (!xaccQueryEqual (q, q2))
{
failure ("queries don't match");
fprintf (stderr, "%s\n\n", str);
fprintf (stderr, "%s\n\n", str ? str : "(null)");
scm_q = gnc_query2scm (q2);
gh_display (scm_q); gh_newline ();
exit (1);