From d4c2b878f51668b1dce4c05a884138064f65cfa0 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Thu, 28 May 2020 21:10:42 -0400 Subject: [PATCH] Fixing the same problem again. . . actual mechanism was slightly different than I expected. --- database/DBio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database/DBio.c b/database/DBio.c index 50a5ab79..c5f2a5ee 100644 --- a/database/DBio.c +++ b/database/DBio.c @@ -2736,7 +2736,8 @@ DBCellWrite(cellDef, fileName) /* surprises can occur after saving a file as a different */ /* filename. */ - StrDup(&cellDef->cd_file, fileName); + if (fileName != cellDef->cd_file) + StrDup(&cellDef->cd_file, fileName); /* The cd_file should not have the .mag suffix, but make sure */ /* it doesn't before adding one. */