From 174a50191a3fe40747a45f908dd8143a5c9c53af Mon Sep 17 00:00:00 2001 From: Dennis Heimbigner Date: Thu, 27 Apr 2023 16:15:55 -0600 Subject: [PATCH] track3 --- libdispatch/ncs3sdk_h5.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/libdispatch/ncs3sdk_h5.c b/libdispatch/ncs3sdk_h5.c index 80727e8e0..081505482 100644 --- a/libdispatch/ncs3sdk_h5.c +++ b/libdispatch/ncs3sdk_h5.c @@ -491,9 +491,16 @@ makes3fullpath(const char* rooturl, const char* bucket, const char* prefix, cons { int stat = NC_NOERR; -fprintf(stderr,">>> makes3fullpath: rooturl=|%s| url=|%s|\n", -(rooturl?rooturl:"null"), -(ncbytescontents(url)?ncbytescontents(url):"null")); +if(rooturl == NULL) +fprintf(stderr,">>> makes3fullpath: rooturl=|%s|\n","null"); +else +fprintf(stderr,">>> makes3fullpath: rooturl=|%s|\n",rooturl); + +if(url == NULL) +fprintf(stderr,">>> makes3fullpath: url=|%s|\n","null"); +else +fprintf(stderr,">>> makes3fullpath: |url|=%d\n",(int)ncbyteslength(url)); +fflush(stderr); assert(url != NULL); assert(rooturl != NULL);