subsurface crash when merging .xml files
Linus Torvalds
torvalds at linux-foundation.org
Wed Feb 15 17:04:17 PST 2017
On Wed, Feb 15, 2017 at 5:01 PM, Linus Torvalds
<torvalds at linux-foundation.org> wrote:
>
> Let me check if just fixing that one line fixes it.
Yes, that seems to be the only problem. I didn't actually verify what
the end result of the merge looked like, but it didn't crash and
seemed generally happy.
Trivial patch attached
Linus
-------------- next part --------------
core/dive.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/dive.c b/core/dive.c
index 3dcfebc3..2c699fb9 100644
--- a/core/dive.c
+++ b/core/dive.c
@@ -3139,7 +3139,7 @@ struct dive *merge_dives(struct dive *a, struct dive *b, int offset, bool prefer
dl = b;
}
- if (!strcmp(a->dc.model, "planneed dive")) {
+ if (same_string(a->dc.model, "planned dive")) {
struct dive *tmp = a;
a = b;
b = tmp;
More information about the subsurface
mailing list