From e07ae6f4fdffd7cea0d5262279687213b3f6d285 Mon Sep 17 00:00:00 2001 From: Paul Reeves Date: Mon, 23 Jan 2023 16:20:30 +0100 Subject: [PATCH] Test input to BlobSave function --- src/MyFirstUDRKit.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/MyFirstUDRKit.cpp b/src/MyFirstUDRKit.cpp index 7fb12d9..089e23c 100644 --- a/src/MyFirstUDRKit.cpp +++ b/src/MyFirstUDRKit.cpp @@ -181,11 +181,12 @@ FB_UDR_MESSAGE(OutMessage, FB_UDR_EXECUTE_FUNCTION { -// // Test Input -// if (!s || !b || !b->blob_handle) { -// return NULL; -// } -// // open for write & as a binary... + // Test Input + if (in->afilenameNull || in->ablobcallbackNull /* || in->ablobcallback.blob_handle == NULL */ ) { + out->resultNull = FB_TRUE; + out->result = 0; + } + // open for write & as a binary... // FILE* file_ = fopen(s, "wb"); // if (file_ == NULL) { // ISC_INT64* res = MALLOC(sizeof(ISC_INT64));