diff options
author | Dave Beckett <dave@dajobe.org> | 2020-09-07 11:55:45 -0700 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2020-09-07 11:55:45 -0700 |
commit | edc48fed6eb3d799f4c396a38fa4f8cb396489e7 (patch) | |
tree | 392a69bed9e6e366b9424e2b38101dcea8ded643 | |
parent | bf7a43622bdbc1a795b2a005ec8f44ef66de80d7 (diff) | |
download | raptor-edc48fed6eb3d799f4c396a38fa4f8cb396489e7.tar.gz |
Protect some debug messages from null URI
-rw-r--r-- | src/raptor_qname.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/raptor_qname.c b/src/raptor_qname.c index e3f460b4..24fbd4dd 100644 --- a/src/raptor_qname.c +++ b/src/raptor_qname.c @@ -154,7 +154,7 @@ raptor_new_qname(raptor_namespace_stack *nstack, if(ns) { qname->nspace = ns; #if defined(RAPTOR_DEBUG) && RAPTOR_DEBUG > 1 - RAPTOR_DEBUG2("Found default namespace %s\n", raptor_uri_as_string(ns->uri)); + RAPTOR_DEBUG2("Found default namespace with URI %s\n", ns->uri ? raptor_uri_as_string(ns->uri) : "None"); #endif } else { #if defined(RAPTOR_DEBUG) && RAPTOR_DEBUG > 1 @@ -190,7 +190,7 @@ raptor_new_qname(raptor_namespace_stack *nstack, "The namespace prefix in \"%s\" was not declared.", name); } else { #if defined(RAPTOR_DEBUG) && RAPTOR_DEBUG > 1 - RAPTOR_DEBUG3("Found namespace prefix %s URI %s\n", ns->prefix, raptor_uri_as_string(ns->uri)); + RAPTOR_DEBUG3("Found namespace prefix %s URI %s\n", ns->prefix, ns->uri ? raptor_uri_as_string(ns->uri) : "None"); #endif qname->nspace = ns; } |