blob: f2d017e4b3957a6b15f5b0611e4a7bce7434bfef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- liblangtag/lt-script-db.c
+++ liblangtag/lt-script-db.c
@@ -134,8 +134,12 @@
cnode = cnode->next;
}
if (!subtag) {
- lt_warning("No subtag node: description = '%s'",
- desc);
+ if (!desc) {
+ lt_warning("No subtag nor description node");
+ } else {
+ lt_warning("No subtag node: description = '%s'",
+ desc);
+ }
goto bail1;
}
if (!desc) {
|