Test input to BlobSave function

This commit is contained in:
Paul Reeves 2023-01-23 16:20:30 +01:00
parent 2b30f3b044
commit e07ae6f4fd
1 changed files with 6 additions and 5 deletions

View File

@ -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));