From 62e5d3e282fd776b4593a59fa458c931ed9386a9 Mon Sep 17 00:00:00 2001 From: Paul Reeves Date: Tue, 24 Jan 2023 15:59:51 +0100 Subject: [PATCH] tidy up --- src/MyFirstUDRKit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MyFirstUDRKit.cpp b/src/MyFirstUDRKit.cpp index 089e23c..8a59269 100644 --- a/src/MyFirstUDRKit.cpp +++ b/src/MyFirstUDRKit.cpp @@ -143,7 +143,7 @@ FB_UDR_BEGIN_FUNCTION(MFK_flagged) // if ( flags == NULL ) { // return 0; // } - if ( in->flagsNull ) { + if ( in->flagsNull != 0 ) { out->resultNull = FB_TRUE; out->result = 0; } @@ -182,7 +182,7 @@ FB_UDR_MESSAGE(OutMessage, FB_UDR_EXECUTE_FUNCTION { // Test Input - if (in->afilenameNull || in->ablobcallbackNull /* || in->ablobcallback.blob_handle == NULL */ ) { + if ((in->afilenameNull != 0) || in->ablobcallbackNull != 0 /* || in->ablobcallback.blob_handle == NULL */ ) { out->resultNull = FB_TRUE; out->result = 0; }