From 77d9027f10488a7ccedc22782e06a7e61ee603b3 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 28 Feb 2019 16:57:13 +0100 Subject: crystal_copy(): Make new copy of notes if non-NULL --- libcrystfel/src/crystal.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libcrystfel') diff --git a/libcrystfel/src/crystal.c b/libcrystfel/src/crystal.c index 6ac3b71e..66a8e19c 100644 --- a/libcrystfel/src/crystal.c +++ b/libcrystfel/src/crystal.c @@ -131,6 +131,7 @@ Crystal *crystal_copy(const Crystal *cryst) if ( c == NULL ) return NULL; memcpy(c, cryst, sizeof(Crystal)); + if ( c->notes != NULL ) c->notes = strdup(c->notes); return c; } -- cgit v1.2.3