From 4103c6e659e526f23d0b46faf14f48d3172ba0c4 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Sat, 22 Jul 2017 23:46:53 -0400 Subject: [PATCH] Replace ftl by err. --- core/c/mpw-marshall.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/c/mpw-marshall.c b/core/c/mpw-marshall.c index d163c447..8d3bf278 100644 --- a/core/c/mpw-marshall.c +++ b/core/c/mpw-marshall.c @@ -378,8 +378,10 @@ MPMarshalledUser *mpw_marshall_read_flat( importKeyID = strdup( headerValue ); if (strcmp( headerName, "Algorithm" ) == 0) { int importAlgorithmInt = atoi( headerValue ); - if (importAlgorithmInt < MPAlgorithmVersionFirst || importAlgorithmInt > MPAlgorithmVersionLast) - ftl( "Invalid algorithm version: %s\n", headerValue ); + if (importAlgorithmInt < MPAlgorithmVersionFirst || importAlgorithmInt > MPAlgorithmVersionLast) { + err( "Invalid algorithm version: %s\n", headerValue ); + return false; + } importAlgorithm = (MPAlgorithmVersion)importAlgorithmInt; } if (strcmp( headerName, "Default Type" ) == 0)