summaryrefslogtreecommitdiff
path: root/kicad
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-08 01:15:28 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-08 01:15:28 (GMT)
commitdafe079f9bd26ee63e685db638d578236abd6eb3 (patch)
tree6f5bb40f0262617327789d69fa6beb14ce15fd09 /kicad
parent4028ade2df7bbd6be8259df46e75f0d9bec6ce54 (diff)
downloadeeshow-dafe079f9bd26ee63e685db638d578236abd6eb3.zip
eeshow-dafe079f9bd26ee63e685db638d578236abd6eb3.tar.gz
eeshow-dafe079f9bd26ee63e685db638d578236abd6eb3.tar.bz2
kicad/pl-render.c (expand): don't crash on %T if we have no title
Diffstat (limited to 'kicad')
-rw-r--r--kicad/pl-render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kicad/pl-render.c b/kicad/pl-render.c
index aa3ee6c..fd20992 100644
--- a/kicad/pl-render.c
+++ b/kicad/pl-render.c
@@ -107,7 +107,7 @@ static char *expand(const struct pl_ctx *pl, const char *s,
do_free = 1;
break;
case 'T': // title
- x = (char *) sheet->title;
+ x = sheet->title ? (char *) sheet->title : "";
break;
case 'Y': // company name
x = "%Y";