summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-13 22:36:47 +0000
committerDavid Robillard <d@drobilla.net>2012-05-13 22:36:47 +0000
commit787e2b3658f78bf5dc869d5642ded158cec38dc9 (patch)
treed2fee20f7ddda68137d14c9b45ecb31d9047de77 /src
parent3fc7e1a5189eabb84c6bffb15603bc860f348c6a (diff)
downloadsratom-787e2b3658f78bf5dc869d5642ded158cec38dc9.tar.gz
sratom-787e2b3658f78bf5dc869d5642ded158cec38dc9.tar.bz2
sratom-787e2b3658f78bf5dc869d5642ded158cec38dc9.zip
Fix potential NULL dereference.
git-svn-id: http://svn.drobilla.net/lad/trunk/sratom@4391 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/sratom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sratom.c b/src/sratom.c
index 2e5ba22..dd13b1b 100644
--- a/src/sratom.c
+++ b/src/sratom.c
@@ -232,7 +232,7 @@ sratom_write(Sratom* sratom,
language = serd_node_from_string(
SERD_LITERAL, USTR(lang + prefix_len));
} else {
- fprintf(stderr, "Unknown language URI <%s>\n", lang);
+ fprintf(stderr, "Unknown language URID %d\n", lit->lang);
}
}
} else if (type_urid == sratom->forge.URID) {