mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-22 20:14:04 +02:00
eeshow/delta.c (sheet_eq): check if one sheet title is NULL
May have caused a segfault.
This commit is contained in:
parent
c5fcf2c16e
commit
e349ae0d1f
@ -303,8 +303,12 @@ bool sheet_eq(const struct sheet *a, const struct sheet *b)
|
|||||||
if (!(a && b))
|
if (!(a && b))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (a->title != b->title && strcmp(a->title, b->title))
|
if (a->title != b->title) {
|
||||||
return 0;
|
if (!a->title || !b->title)
|
||||||
|
return 0;
|
||||||
|
if (strcmp(a->title, b->title))
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
obj_a = a->objs;
|
obj_a = a->objs;
|
||||||
obj_b = b->objs;
|
obj_b = b->objs;
|
||||||
|
Loading…
Reference in New Issue
Block a user