summaryrefslogtreecommitdiff
path: root/kicad
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-23 17:42:46 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-23 17:42:46 -0300
commit79b3e64b206aa9bc728e77f5b415b205b32bfa65 (patch)
treea3c7b1edf7b99b67eded6a72712b63e7c240e4a4 /kicad
parentc9b85bd14a54881898d08261f7b9d98288a217b3 (diff)
downloadeeshow-79b3e64b206aa9bc728e77f5b415b205b32bfa65.tar.gz
eeshow-79b3e64b206aa9bc728e77f5b415b205b32bfa65.tar.bz2
eeshow-79b3e64b206aa9bc728e77f5b415b205b32bfa65.zip
kicad/delta.c (delta): don't rely on sheet->title to be non-NULL
Diffstat (limited to 'kicad')
-rw-r--r--kicad/delta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kicad/delta.c b/kicad/delta.c
index 9eb05bb..a09a014 100644
--- a/kicad/delta.c
+++ b/kicad/delta.c
@@ -455,7 +455,7 @@ void delta(const struct sheet *a, const struct sheet *b,
init_res(res_b);
init_res(res_ab);
- if (!strcmp(a->title, b->title)) {
+ if (a->title && b->title && !strcmp(a->title, b->title)) {
res_ab->title = a->title;
} else {
res_a->title = a->title;